Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 103 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 59.69 kB / 306.4 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1146, allocations: 50.53 MB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003998/0.1187, allocations: 2.514 MB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.1212, allocations: 1.446 MB / 360.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002078/0.1214, allocations: 7.938 kB / 360.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007176/0.1222, allocations: 215.2 kB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004576/0.1226, allocations: 171.4 kB / 361.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000622/0.1233, allocations: 235.6 kB / 361.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000506/0.1238, allocations: 483.7 kB / 362 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000302/0.1241, allocations: 217.7 kB / 362.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1243, allocations: 195.2 kB / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.1245, allocations: 222.9 kB / 362.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.819e-05/0.1246, allocations: 32 kB / 362.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.1248, allocations: 119.9 kB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1249, allocations: 131.6 kB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1251, allocations: 222.6 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005315/0.1256, allocations: 0.5415 MB / 363.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1256, allocations: 0 / 363.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1257, allocations: 0 / 363.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1257, allocations: 0 / 363.7 MB, free: 7.465 MB / 302.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.001315/0.127, allocations: 0.8475 MB / 364.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.127, allocations: 12.03 kB / 364.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002555/0.1273, allocations: 68.2 kB / 364.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004557/0.1278, allocations: 391 kB / 365 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.524e-05/0.1278, allocations: 55.27 kB / 365 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.258e-05/0.1279, allocations: 43.94 kB / 365.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006322/0.1285, allocations: 428.7 kB / 365.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1285, allocations: 4 kB / 365.5 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.1286, allocations: 12 kB / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.1286, allocations: 12.44 kB / 365.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004586/0.1291, allocations: 277 kB / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.1309, allocations: 1.682 MB / 367.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005752/0.1315, allocations: 295.9 kB / 367.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.1317, allocations: 134.4 kB / 367.9 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.1318, allocations: 4 kB / 367.9 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004969/0.1323, allocations: 331.8 kB / 368.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.084e-06/0.1323, allocations: 0 / 368.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009315/0.1333, allocations: 473.5 kB / 368.7 MB, free: 2.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.1334, allocations: 162.2 kB / 368.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.1339, allocations: 0.4894 MB / 369.3 MB, free: 1.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.134, allocations: 45.69 kB / 369.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.1341, allocations: 232.6 kB / 369.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.706e-05/0.1342, allocations: 90.92 kB / 369.7 MB, free: 1.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.1344, allocations: 118.2 kB / 369.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1345, allocations: 358.7 kB / 370.2 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.1347, allocations: 113.1 kB / 370.3 MB, free: 492 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.1351, allocations: 270.7 kB / 370.5 MB, free: 160 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2001/0.3352, allocations: 397.3 kB / 370.9 MB, free: 19.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.3352, allocations: 1.562 kB / 370.9 MB, free: 19.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009664/0.3362, allocations: 467.2 kB / 371.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.826e-05/0.3362, allocations: 37.58 kB / 371.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3363, allocations: 3.719 kB / 371.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.3363, allocations: 7.031 kB / 371.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.3365, allocations: 42.28 kB / 371.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/0.3365, allocations: 11.59 kB / 371.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.3368, allocations: 55.86 kB / 371.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.3368, allocations: 19.84 kB / 371.5 MB, free: 19.52 MB / 302.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.0003168/0.3371, allocations: 254.4 kB / 371.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.3372, allocations: 46.69 kB / 371.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004869/0.3377, allocations: 229.3 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3377, allocations: 5.812 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3377, allocations: 7.219 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.3378, allocations: 3.266 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.3389, allocations: 0.7431 MB / 372.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3389, allocations: 1.688 kB / 372.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.223e-05/0.339, allocations: 18.69 kB / 372.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.339, allocations: 5.688 kB / 372.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.3391, allocations: 11.8 kB / 372.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.214e-06/0.3391, allocations: 6.75 kB / 372.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3391, allocations: 0 / 372.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007687/0.3399, allocations: 490.5 kB / 373.3 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.578e-05/0.34, allocations: 127.5 kB / 373.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.293e-05/0.34, allocations: 14.92 kB / 373.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.3402, allocations: 22.67 kB / 373.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3404, allocations: 43.72 kB / 373.6 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.3404, allocations: 12.52 kB / 373.6 MB, free: 18.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004166/0.3409, allocations: 328.8 kB / 373.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3409, allocations: 0 / 373.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005241/0.3414, allocations: 120.1 kB / 374 MB, free: 18.61 MB / 302.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.001134/0.3425, allocations: 454.9 kB / 374.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008136/0.3434, allocations: 419 kB / 374.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3434, allocations: 2.781 kB / 374.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.3437, allocations: 231.9 kB / 375.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.3443, allocations: 88.78 kB / 375.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.3457, allocations: 0.9219 MB / 376.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.346, allocations: 0.8342 MB / 376.9 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002361/0.3463, allocations: 80.97 kB / 377 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.3464, allocations: 41.8 kB / 377 MB, free: 16.81 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3464, allocations: 0 / 377 MB, free: 16.81 MB / 302.1 MB Notification: Performance of Templates: time 0.01145/0.3578, allocations: 5.078 MB / 382.1 MB, free: 16.34 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches