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.001219/0.001219, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001102/0.001102, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.322/1.322, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001177/0.001177, allocations: 47.94 kB / 280.8 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.0834, allocations: 46.63 MB / 327.4 MB, free: 4.82 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004187/0.08763, allocations: 2.479 MB / 329.9 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.08989, allocations: 1.236 MB / 331.1 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003157/0.09023, allocations: 7.938 kB / 331.1 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009656/0.09127, allocations: 219.3 kB / 331.4 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005655/0.09185, allocations: 135.5 kB / 331.5 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000955/0.09282, allocations: 247.6 kB / 331.7 MB, free: 488 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006906/0.09353, allocations: 471.8 kB / 332.2 MB, free: 16 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004926/0.09403, allocations: 217.8 kB / 332.4 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003162/0.09436, allocations: 195.2 kB / 332.6 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.09469, allocations: 207.1 kB / 332.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.904e-05/0.09478, allocations: 36 kB / 332.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003361/0.09513, allocations: 127.9 kB / 333 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.09533, allocations: 123.5 kB / 333.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.09561, allocations: 222.7 kB / 333.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006747/0.0963, allocations: 403.5 kB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.09632, allocations: 0 / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.09634, allocations: 0 / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.09636, allocations: 4 kB / 333.7 MB, free: 14.5 MB / 286.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.001931/0.0983, allocations: 0.8551 MB / 334.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.09837, allocations: 12.03 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.09855, allocations: 56.28 kB / 334.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006866/0.09924, allocations: 383.1 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.42e-05/0.09935, allocations: 63.2 kB / 335.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.027e-05/0.09944, allocations: 47.92 kB / 335.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009581/0.1004, allocations: 428.7 kB / 335.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.1004, allocations: 4 kB / 335.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.1005, allocations: 12 kB / 335.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.664e-05/0.1006, allocations: 16.44 kB / 335.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007224/0.1013, allocations: 265.5 kB / 335.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.104, allocations: 1.682 MB / 337.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008449/0.1048, allocations: 299.9 kB / 337.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.1052, allocations: 134.4 kB / 337.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.881e-05/0.1053, allocations: 20.05 kB / 337.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006641/0.106, allocations: 323.8 kB / 338.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.366e-06/0.106, allocations: 0 / 338.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.001391/0.1074, allocations: 482.5 kB / 338.7 MB, free: 9.152 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1075, allocations: 170.2 kB / 338.9 MB, free: 8.949 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.1083, allocations: 493.2 kB / 339.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.4e-05/0.1084, allocations: 45.64 kB / 339.4 MB, free: 8.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.1086, allocations: 228.5 kB / 339.6 MB, free: 8.184 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.1088, allocations: 83 kB / 339.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.109, allocations: 118.2 kB / 339.8 MB, free: 7.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.1092, allocations: 362.7 kB / 340.2 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.1096, allocations: 121.3 kB / 340.3 MB, free: 7.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004785/0.1101, allocations: 266.7 kB / 340.6 MB, free: 7.176 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00079/0.1109, allocations: 422.4 kB / 341 MB, free: 6.695 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.1109, allocations: 4 kB / 341 MB, free: 6.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001153/0.1121, allocations: 478.8 kB / 341.5 MB, free: 6.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.731e-05/0.1121, allocations: 37.7 kB / 341.5 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1122, allocations: 4 kB / 341.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.1122, allocations: 4 kB / 341.5 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.1124, allocations: 47.84 kB / 341.5 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/0.1124, allocations: 8 kB / 341.5 MB, free: 6.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003784/0.1128, allocations: 51.61 kB / 341.6 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.927e-05/0.1129, allocations: 24.2 kB / 341.6 MB, free: 6.031 MB / 286.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.0003938/0.1133, allocations: 252.5 kB / 341.9 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1134, allocations: 47.44 kB / 341.9 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006921/0.1141, allocations: 261.3 kB / 342.2 MB, free: 5.449 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.659e-06/0.1142, allocations: 12 kB / 342.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1142, allocations: 0 / 342.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.1142, allocations: 0 / 342.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.1157, allocations: 0.7866 MB / 343 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1157, allocations: 0 / 343 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.913e-05/0.1158, allocations: 15.98 kB / 343 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.1158, allocations: 0 / 343 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-05/0.1159, allocations: 23.94 kB / 343 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.1159, allocations: 3.938 kB / 343 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1159, allocations: 0 / 343 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.1169, allocations: 0.5132 MB / 343.5 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.1171, allocations: 116.6 kB / 343.6 MB, free: 3.879 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.912e-05/0.1172, allocations: 23.88 kB / 343.7 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.1175, allocations: 23.97 kB / 343.7 MB, free: 3.832 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.1177, allocations: 35.95 kB / 343.7 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/0.1177, allocations: 23.98 kB / 343.7 MB, free: 3.773 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004976/0.1182, allocations: 315.1 kB / 344.1 MB, free: 3.469 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.074e-06/0.1183, allocations: 0 / 344.1 MB, free: 3.469 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008252/0.1191, allocations: 119.7 kB / 344.2 MB, free: 3.352 MB / 286.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.001587/0.1207, allocations: 460.6 kB / 344.6 MB, free: 2.906 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.1219, allocations: 427.6 kB / 345 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.1219, allocations: 256 / 345 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005271/0.1224, allocations: 247.5 kB / 345.3 MB, free: 2.223 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009252/0.1234, allocations: 94.2 kB / 345.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.1255, allocations: 0.9582 MB / 346.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.126, allocations: 0.8439 MB / 347.2 MB, free: 268 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.1262, allocations: 47.42 kB / 347.2 MB, free: 224 kB / 286.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1262, allocations: 0 / 347.2 MB, free: 224 kB / 286.1 MB Notification: Performance of Templates: time 0.01321/0.1395, allocations: 6.305 MB / 353.5 MB, free: 9.898 MB / 302.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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches