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.001196/0.001196, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.00143, allocations: 58.72 kB / 306.2 MB, free: 1.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1279, allocations: 50.54 MB / 356.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005708/0.1337, allocations: 2.514 MB / 359.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003283/0.137, allocations: 1.469 MB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004272/0.1375, allocations: 7.938 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009543/0.1384, allocations: 211.3 kB / 361 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006673/0.1391, allocations: 171.4 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008373/0.14, allocations: 227.6 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006782/0.1406, allocations: 459.7 kB / 361.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004332/0.1411, allocations: 209.8 kB / 362 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003556/0.1414, allocations: 175.2 kB / 362.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.1418, allocations: 203 kB / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.863e-05/0.1419, allocations: 20 kB / 362.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003041/0.1422, allocations: 99.89 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.1424, allocations: 119.5 kB / 362.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003005/0.1427, allocations: 202.7 kB / 362.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007376/0.1434, allocations: 0.5025 MB / 363.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1434, allocations: 4 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1435, allocations: 0 / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.957e-05/0.1435, allocations: 0 / 363.3 MB, free: 7.961 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.001816/0.1453, allocations: 0.863 MB / 364.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1454, allocations: 8.031 kB / 364.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003348/0.1457, allocations: 64.27 kB / 364.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000614/0.1463, allocations: 387.1 kB / 364.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.64e-05/0.1464, allocations: 63.27 kB / 364.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.1465, allocations: 39.94 kB / 364.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007514/0.1472, allocations: 428.7 kB / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1473, allocations: 3.938 kB / 365.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.1473, allocations: 16 kB / 365.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.65e-05/0.1474, allocations: 16.44 kB / 365.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005434/0.1479, allocations: 265.4 kB / 365.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.1501, allocations: 1.678 MB / 367.1 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.1507, allocations: 291.9 kB / 367.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.151, allocations: 134.5 kB / 367.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.224e-05/0.1511, allocations: 8 kB / 367.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005352/0.1516, allocations: 331.8 kB / 367.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/0.1516, allocations: 0 / 367.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001015/0.1527, allocations: 474.5 kB / 368.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.528e-05/0.1528, allocations: 158.2 kB / 368.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005982/0.1534, allocations: 0.5011 MB / 369 MB, free: 1.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.1534, allocations: 41.69 kB / 369.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.1536, allocations: 232.6 kB / 369.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.317e-05/0.1537, allocations: 82.98 kB / 369.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.1539, allocations: 110.2 kB / 369.5 MB, free: 1.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1541, allocations: 366.7 kB / 369.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.1543, allocations: 117.1 kB / 369.9 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.1547, allocations: 262.7 kB / 370.2 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.1553, allocations: 407.4 kB / 370.6 MB, free: 192 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.1553, allocations: 0 / 370.6 MB, free: 192 kB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.2018/0.3571, allocations: 464.6 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.868e-05/0.3573, allocations: 36.25 kB / 371.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.3573, allocations: 4.219 kB / 371.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.476e-05/0.3574, allocations: 12.56 kB / 371.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.3576, allocations: 39.05 kB / 371.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-05/0.3576, allocations: 11.34 kB / 371.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003252/0.3579, allocations: 48.55 kB / 371.2 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.308e-05/0.358, allocations: 20.78 kB / 371.2 MB, free: 20.09 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.000435/0.3584, allocations: 252.3 kB / 371.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.3586, allocations: 48 kB / 371.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005451/0.3591, allocations: 232.3 kB / 371.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3591, allocations: 7.844 kB / 371.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3591, allocations: 0.9688 kB / 371.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3592, allocations: 3.984 kB / 371.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.3603, allocations: 0.7402 MB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3603, allocations: 9.25 kB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.046e-05/0.3604, allocations: 14.7 kB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3604, allocations: 2.406 kB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.3604, allocations: 13.5 kB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3604, allocations: 2.906 kB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.3604, allocations: 9.031 kB / 372.5 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007355/0.3612, allocations: 489.4 kB / 373 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.826e-05/0.3613, allocations: 124.9 kB / 373.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.285e-05/0.3613, allocations: 10.91 kB / 373.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.3616, allocations: 32.86 kB / 373.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.3617, allocations: 41.67 kB / 373.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.822e-05/0.3618, allocations: 16.28 kB / 373.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003847/0.3622, allocations: 329.9 kB / 373.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3622, allocations: 0 / 373.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000582/0.3628, allocations: 112.8 kB / 373.7 MB, free: 19.22 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.001149/0.3639, allocations: 455.2 kB / 374.1 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008055/0.3647, allocations: 397 kB / 374.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3647, allocations: 0 / 374.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.3651, allocations: 239.4 kB / 374.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.3657, allocations: 81.86 kB / 374.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.3671, allocations: 0.9255 MB / 375.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.3675, allocations: 0.8345 MB / 376.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002196/0.3677, allocations: 79.8 kB / 376.7 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.3678, allocations: 39.64 kB / 376.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3679, allocations: 0 / 376.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01123/0.3791, allocations: 4.875 MB / 381.6 MB, free: 17.13 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