Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 113.2 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 189.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 51.94 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08658/0.08789, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004125/0.09206, allocations: 2.442 MB / 378.3 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.0944, allocations: 1.255 MB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003282/0.09475, allocations: 11.94 kB / 379.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008046/0.09559, allocations: 242.9 kB / 379.8 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000522/0.09613, allocations: 163.2 kB / 379.9 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007927/0.09693, allocations: 267.4 kB / 380.2 MB, free: 200 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1927/0.2896, allocations: 478.6 kB / 380.7 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003786/0.29, allocations: 212.8 kB / 380.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.2903, allocations: 199.3 kB / 381.1 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.2906, allocations: 211.5 kB / 381.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.039e-05/0.2906, allocations: 34.69 kB / 381.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002798/0.2909, allocations: 122.6 kB / 381.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.2911, allocations: 129.2 kB / 381.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.2912, allocations: 217 kB / 381.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006723/0.2919, allocations: 0.5644 MB / 382.3 MB, free: 9.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2919, allocations: 0 / 382.3 MB, free: 9.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2919, allocations: 0 / 382.3 MB, free: 9.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.292, allocations: 1.312 kB / 382.3 MB, free: 9.566 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001327/0.2933, allocations: 0.8454 MB / 383.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.2933, allocations: 9.219 kB / 383.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.2935, allocations: 60.44 kB / 383.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005259/0.294, allocations: 399.9 kB / 383.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.911e-05/0.2941, allocations: 59.08 kB / 383.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.125e-05/0.2942, allocations: 38.61 kB / 383.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006837/0.2949, allocations: 430 kB / 384.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.2949, allocations: 1.156 kB / 384.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.2949, allocations: 18.89 kB / 384.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.222e-05/0.295, allocations: 16.36 kB / 384.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00049/0.2955, allocations: 263.7 kB / 384.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.2972, allocations: 1.67 MB / 386.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.2978, allocations: 301.9 kB / 386.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.298, allocations: 128.4 kB / 386.5 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-05/0.2981, allocations: 15.33 kB / 386.5 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.2985, allocations: 325.4 kB / 386.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.963e-06/0.2986, allocations: 0 / 386.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009187/0.2995, allocations: 493 kB / 387.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.2996, allocations: 162.1 kB / 387.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.3001, allocations: 489.5 kB / 388 MB, free: 6.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.3001, allocations: 43.83 kB / 388 MB, free: 6.547 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.3003, allocations: 232.3 kB / 388.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.751e-05/0.3003, allocations: 83.97 kB / 388.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.3005, allocations: 121.3 kB / 388.4 MB, free: 6.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.647e-05/0.3006, allocations: 357.4 kB / 388.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.3008, allocations: 116.4 kB / 388.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.3011, allocations: 269.3 kB / 389.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.3016, allocations: 423.9 kB / 389.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.3016, allocations: 6.094 kB / 389.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007365/0.3024, allocations: 471.2 kB / 390 MB, free: 5.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.62e-05/0.3024, allocations: 36.72 kB / 390.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.3024, allocations: 8.75 kB / 390.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.3025, allocations: 6.375 kB / 390.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.3026, allocations: 45.14 kB / 390.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3026, allocations: 11.09 kB / 390.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.3029, allocations: 53.22 kB / 390.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.3029, allocations: 22.25 kB / 390.2 MB, free: 5.098 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002531/0.3032, allocations: 255.3 kB / 390.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.11e-05/0.3033, allocations: 43.33 kB / 390.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004891/0.3038, allocations: 267.2 kB / 390.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3038, allocations: 5.312 kB / 390.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3038, allocations: 1.031 kB / 390.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3038, allocations: 2.984 kB / 390.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.3049, allocations: 0.775 MB / 391.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3049, allocations: 5.188 kB / 391.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.253e-05/0.305, allocations: 22.17 kB / 391.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.305, allocations: 2.125 kB / 391.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.305, allocations: 15.8 kB / 391.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.305, allocations: 6.891 kB / 391.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.305, allocations: 5.062 kB / 391.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006707/0.3057, allocations: 0.5086 MB / 392.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.516e-05/0.3058, allocations: 123.9 kB / 392.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.973e-05/0.3059, allocations: 11.19 kB / 392.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.3061, allocations: 26.69 kB / 392.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.3062, allocations: 45.09 kB / 392.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.3062, allocations: 18.31 kB / 392.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003277/0.3066, allocations: 327.9 kB / 392.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3066, allocations: 0 / 392.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005112/0.3071, allocations: 119.5 kB / 392.8 MB, free: 3.652 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009955/0.3081, allocations: 461.7 kB / 393.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006712/0.3088, allocations: 395.3 kB / 393.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3088, allocations: 0 / 393.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.3091, allocations: 240.8 kB / 393.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000553/0.3097, allocations: 94.92 kB / 393.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.3111, allocations: 0.8184 MB / 394.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.3114, allocations: 0.836 MB / 395.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3115, allocations: 45.33 kB / 395.6 MB, free: 1.824 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3115, allocations: 0 / 395.6 MB, free: 1.824 MB / 318.1 MB Notification: Performance of Templates: time 0.0104/0.3219, allocations: 6.369 MB / 402 MB, free: 68 kB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches