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.001248/0.001248, allocations: 114 kB / 17.28 MB, free: 6.219 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.001909/0.001909, allocations: 189.3 kB / 18.2 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.295/2.295, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001394/0.001394, allocations: 47.92 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, allocations: 46.63 MB / 326.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00435/0.1108, allocations: 2.475 MB / 329.2 MB, free: 2.316 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.1133, allocations: 1.236 MB / 330.5 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.1136, allocations: 11.94 kB / 330.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000809/0.1145, allocations: 207.2 kB / 330.7 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.1149, allocations: 147.4 kB / 330.8 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007218/0.1156, allocations: 243.7 kB / 331.1 MB, free: 484 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005091/0.1161, allocations: 475.8 kB / 331.5 MB, free: 8 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003761/0.1165, allocations: 205.8 kB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.1167, allocations: 191.2 kB / 331.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.117, allocations: 219 kB / 332.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.418e-05/0.1171, allocations: 32 kB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000252/0.1173, allocations: 127.9 kB / 332.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1175, allocations: 131.6 kB / 332.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.1177, allocations: 218.7 kB / 332.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006304/0.1183, allocations: 0.5336 MB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1183, allocations: 0 / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1183, allocations: 0 / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1183, allocations: 0 / 333.2 MB, free: 14.36 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.001353/0.1197, allocations: 0.8551 MB / 334 MB, free: 13.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1198, allocations: 8.031 kB / 334 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1199, allocations: 60.28 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004759/0.1204, allocations: 387 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.127e-05/0.1204, allocations: 55.27 kB / 334.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.1205, allocations: 43.94 kB / 334.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006942/0.1212, allocations: 432.7 kB / 335 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1212, allocations: 3.938 kB / 335 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.1213, allocations: 16 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/0.1213, allocations: 16.44 kB / 335 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.1218, allocations: 261.5 kB / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.1237, allocations: 1.686 MB / 337 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.1242, allocations: 288 kB / 337.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.1245, allocations: 138.5 kB / 337.4 MB, free: 9.879 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-05/0.1245, allocations: 4 kB / 337.4 MB, free: 9.875 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004756/0.125, allocations: 335.7 kB / 337.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.125, allocations: 0 / 337.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.000936/0.126, allocations: 494.5 kB / 338.2 MB, free: 9.012 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.261e-05/0.1261, allocations: 166.2 kB / 338.4 MB, free: 8.812 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000502/0.1266, allocations: 497.2 kB / 338.9 MB, free: 8.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.1266, allocations: 37.7 kB / 338.9 MB, free: 8.277 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.1268, allocations: 232.5 kB / 339.1 MB, free: 8.047 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.275e-05/0.1269, allocations: 90.98 kB / 339.2 MB, free: 7.957 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.127, allocations: 110.2 kB / 339.3 MB, free: 7.844 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1271, allocations: 362.7 kB / 339.7 MB, free: 7.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.1274, allocations: 117.1 kB / 339.8 MB, free: 7.367 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.1277, allocations: 266.7 kB / 340 MB, free: 7.043 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004996/0.1282, allocations: 426.4 kB / 340.5 MB, free: 6.559 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1282, allocations: 0 / 340.5 MB, free: 6.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007272/0.1289, allocations: 478.2 kB / 340.9 MB, free: 6.078 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.129, allocations: 33.7 kB / 341 MB, free: 6.039 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.129, allocations: 4 kB / 341 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.129, allocations: 8 kB / 341 MB, free: 6.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.1292, allocations: 44.31 kB / 341 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1292, allocations: 15.94 kB / 341 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1294, allocations: 51.66 kB / 341.1 MB, free: 5.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.159e-05/0.1295, allocations: 24 kB / 341.1 MB, free: 5.895 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.0003509/0.1298, allocations: 252.5 kB / 341.3 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.202e-05/0.1299, allocations: 55.36 kB / 341.4 MB, free: 5.574 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.1304, allocations: 261.6 kB / 341.7 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1304, allocations: 4 kB / 341.7 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1304, allocations: 0 / 341.7 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1304, allocations: 4 kB / 341.7 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009989/0.1314, allocations: 0.7828 MB / 342.4 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1314, allocations: 0 / 342.4 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.367e-05/0.1315, allocations: 15.92 kB / 342.5 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1315, allocations: 7.938 kB / 342.5 MB, free: 4.434 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.1316, allocations: 15.94 kB / 342.5 MB, free: 4.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.1316, allocations: 7.984 kB / 342.5 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1316, allocations: 0 / 342.5 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006629/0.1322, allocations: 0.5136 MB / 343 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.809e-05/0.1323, allocations: 112.6 kB / 343.1 MB, free: 3.742 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.91e-05/0.1324, allocations: 23.92 kB / 343.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.1326, allocations: 19.98 kB / 343.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.82e-05/0.1327, allocations: 35.95 kB / 343.2 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.1327, allocations: 19.98 kB / 343.2 MB, free: 3.645 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003167/0.1331, allocations: 323.1 kB / 343.5 MB, free: 3.332 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1331, allocations: 0 / 343.5 MB, free: 3.332 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004446/0.1335, allocations: 120 kB / 343.6 MB, free: 3.215 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.0009483/0.1345, allocations: 457.5 kB / 344.1 MB, free: 2.773 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006932/0.1352, allocations: 426.9 kB / 344.5 MB, free: 2.344 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1352, allocations: 0 / 344.5 MB, free: 2.344 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000366/0.1356, allocations: 246.9 kB / 344.8 MB, free: 2.09 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.1361, allocations: 82.7 kB / 344.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.1377, allocations: 0.9215 MB / 345.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004837/0.1382, allocations: 0.8361 MB / 346.6 MB, free: 196 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001947/0.1384, allocations: 83.55 kB / 346.7 MB, free: 112 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1385, allocations: 43.42 kB / 346.7 MB, free: 72 kB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1385, allocations: 0 / 346.7 MB, free: 72 kB / 286.1 MB Notification: Performance of Templates: time 0.01038/0.1489, allocations: 5.341 MB / 352.1 MB, free: 10.72 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/jenkins/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