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.001175/0.001175, allocations: 103.3 kB / 18.35 MB, free: 4.516 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.001038/0.001038, allocations: 188 kB / 19.29 MB, free: 3.586 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.494/1.494, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001196/0.001196, allocations: 51.94 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 46.63 MB / 328.7 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004227/0.1098, allocations: 2.448 MB / 331.2 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.1119, allocations: 1.24 MB / 332.4 MB, free: 60 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.1121, allocations: 7.938 kB / 332.4 MB, free: 52 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008018/0.1129, allocations: 243 kB / 332.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003712/0.1133, allocations: 159.2 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.1139, allocations: 279.4 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005102/0.1145, allocations: 479.6 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003752/0.1148, allocations: 209.8 kB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.1151, allocations: 187.3 kB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.1153, allocations: 215 kB / 334.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.683e-05/0.1154, allocations: 32 kB / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002315/0.1156, allocations: 127.8 kB / 334.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.1157, allocations: 119.7 kB / 334.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.1159, allocations: 222.6 kB / 334.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.1166, allocations: 0.5526 MB / 335.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1166, allocations: 0 / 335.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1166, allocations: 3.938 kB / 335.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1166, allocations: 0 / 335.2 MB, free: 13.25 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.001421/0.118, allocations: 0.8515 MB / 336 MB, free: 12.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1181, allocations: 12.03 kB / 336.1 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.1182, allocations: 56.28 kB / 336.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.1188, allocations: 395.1 kB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.879e-05/0.1189, allocations: 55.27 kB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.1189, allocations: 43.94 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006564/0.1196, allocations: 428.7 kB / 337 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.1196, allocations: 11.92 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.788e-05/0.1197, allocations: 19.92 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.73e-05/0.1197, allocations: 12.44 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004644/0.1202, allocations: 265.5 kB / 337.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.1221, allocations: 1.666 MB / 339 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005924/0.1227, allocations: 304 kB / 339.3 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.123, allocations: 130.5 kB / 339.4 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.105e-05/0.123, allocations: 11.98 kB / 339.4 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004972/0.1236, allocations: 336 kB / 339.7 MB, free: 8.391 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.1236, allocations: 0 / 339.7 MB, free: 8.391 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009634/0.1245, allocations: 482.5 kB / 340.2 MB, free: 7.906 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.1247, allocations: 170.2 kB / 340.4 MB, free: 7.703 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005409/0.1252, allocations: 497.2 kB / 340.9 MB, free: 7.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.1253, allocations: 37.7 kB / 340.9 MB, free: 7.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.1254, allocations: 228.6 kB / 341.1 MB, free: 6.941 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.605e-05/0.1255, allocations: 86.98 kB / 341.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.1257, allocations: 118.2 kB / 341.3 MB, free: 6.734 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1259, allocations: 362.7 kB / 341.7 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.1261, allocations: 113.1 kB / 341.8 MB, free: 6.262 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000316/0.1264, allocations: 262.7 kB / 342.1 MB, free: 5.945 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005402/0.127, allocations: 426.4 kB / 342.5 MB, free: 5.461 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.127, allocations: 0 / 342.5 MB, free: 5.461 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007257/0.1277, allocations: 474.6 kB / 342.9 MB, free: 4.984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.739e-05/0.1278, allocations: 41.75 kB / 343 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1278, allocations: 4 kB / 343 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.1278, allocations: 8 kB / 343 MB, free: 4.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.128, allocations: 47.8 kB / 343 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.128, allocations: 11.92 kB / 343 MB, free: 4.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.1282, allocations: 47.67 kB / 343.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-05/0.1283, allocations: 24.31 kB / 343.1 MB, free: 4.797 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.0002772/0.1286, allocations: 260.5 kB / 343.4 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.1286, allocations: 47.38 kB / 343.4 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.1291, allocations: 257.3 kB / 343.7 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1291, allocations: 4 kB / 343.7 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1291, allocations: 4 kB / 343.7 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1292, allocations: 3.984 kB / 343.7 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.1302, allocations: 0.787 MB / 344.5 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1302, allocations: 0 / 344.5 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.064e-05/0.1302, allocations: 11.94 kB / 344.5 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1303, allocations: 4 kB / 344.5 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.1303, allocations: 11.98 kB / 344.5 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-06/0.1303, allocations: 7.938 kB / 344.5 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1303, allocations: 0 / 344.5 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007195/0.131, allocations: 0.5215 MB / 345 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1311, allocations: 116.6 kB / 345.1 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.448e-05/0.1312, allocations: 16 kB / 345.1 MB, free: 2.625 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1314, allocations: 27.91 kB / 345.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1315, allocations: 35.95 kB / 345.2 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-05/0.1316, allocations: 19.98 kB / 345.2 MB, free: 2.543 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000336/0.1319, allocations: 323.1 kB / 345.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1319, allocations: 0 / 345.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004588/0.1324, allocations: 119.7 kB / 345.7 MB, free: 2.117 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.001016/0.1334, allocations: 464.8 kB / 346.1 MB, free: 1.664 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006654/0.1341, allocations: 399 kB / 346.5 MB, free: 1.262 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1341, allocations: 0 / 346.5 MB, free: 1.262 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003396/0.1345, allocations: 235.6 kB / 346.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.135, allocations: 86.72 kB / 346.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.1363, allocations: 0.7729 MB / 347.6 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.1368, allocations: 0.8439 MB / 348.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.137, allocations: 87.78 kB / 348.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.1371, allocations: 39.44 kB / 348.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1371, allocations: 0 / 348.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Templates: time 0.01058/0.1477, allocations: 5.489 MB / 354.1 MB, free: 9.637 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 -s cvode -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