Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001824/0.001824, allocations: 109.6 kB / 17.16 MB, free: 6.082 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.002144/0.002144, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.902/1.902, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 56.14 kB / 300.6 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1457, allocations: 49.44 MB / 350 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.006602/0.1524, allocations: 2.491 MB / 352.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0041/0.1566, allocations: 1.313 MB / 353.8 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.1571, allocations: 11.94 kB / 353.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.1585, allocations: 207.3 kB / 354.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007145/0.1592, allocations: 139.5 kB / 354.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.1605, allocations: 262.3 kB / 354.5 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008207/0.1614, allocations: 447.8 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005254/0.1619, allocations: 201.8 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.1623, allocations: 175.1 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.1626, allocations: 207 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.021e-05/0.1627, allocations: 20 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003848/0.1631, allocations: 103.9 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.1634, allocations: 115.6 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003176/0.1637, allocations: 206.7 kB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006649/0.1644, allocations: 387.5 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1644, allocations: 0 / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1644, allocations: 0 / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.527e-06/0.1644, allocations: 0 / 356.3 MB, free: 14.59 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.002112/0.1665, allocations: 0.8553 MB / 357.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.1666, allocations: 12.03 kB / 357.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.1668, allocations: 56.28 kB / 357.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008017/0.1676, allocations: 387 kB / 357.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.1678, allocations: 58.64 kB / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.28e-05/0.1679, allocations: 40 kB / 357.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.169, allocations: 424.7 kB / 358.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.169, allocations: 7.922 kB / 358.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.1691, allocations: 16 kB / 358.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.823e-05/0.1691, allocations: 16.44 kB / 358.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/0.17, allocations: 269.4 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003245/0.1733, allocations: 1.686 MB / 360.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009794/0.1743, allocations: 296 kB / 360.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003901/0.1747, allocations: 126.5 kB / 360.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.673e-05/0.1748, allocations: 11.98 kB / 360.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008098/0.1756, allocations: 332.6 kB / 360.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.767e-06/0.1756, allocations: 0 / 360.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.001593/0.1772, allocations: 477.8 kB / 361.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.1774, allocations: 166.2 kB / 361.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009271/0.1783, allocations: 0.4894 MB / 361.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.1784, allocations: 45.7 kB / 362 MB, free: 8.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.1788, allocations: 228.5 kB / 362.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.1789, allocations: 83 kB / 362.3 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000291/0.1792, allocations: 118.2 kB / 362.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002366/0.1795, allocations: 362.7 kB / 362.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.1799, allocations: 109.1 kB / 362.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005875/0.1805, allocations: 270.7 kB / 363.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000967/0.1815, allocations: 422.8 kB / 363.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1815, allocations: 0 / 363.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001392/0.1829, allocations: 478.8 kB / 364 MB, free: 6.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.448e-05/0.183, allocations: 41.78 kB / 364.1 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.183, allocations: 8.062 kB / 364.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.91e-05/0.1831, allocations: 8 kB / 364.1 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.1833, allocations: 43.86 kB / 364.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-05/0.1834, allocations: 15.86 kB / 364.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/0.1839, allocations: 51.61 kB / 364.2 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.184, allocations: 24 kB / 364.2 MB, free: 6.129 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.0005012/0.1845, allocations: 252.6 kB / 364.4 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.1846, allocations: 43.44 kB / 364.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008292/0.1855, allocations: 259.1 kB / 364.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.1855, allocations: 7.984 kB / 364.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.1855, allocations: 4 kB / 364.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.1856, allocations: 7.922 kB / 364.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.1874, allocations: 0.779 MB / 365.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.1874, allocations: 4 kB / 365.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.1875, allocations: 19.88 kB / 365.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.1876, allocations: 0 / 365.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/0.1876, allocations: 15.98 kB / 365.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.1876, allocations: 4.094 kB / 365.6 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1877, allocations: 4 kB / 365.6 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.1889, allocations: 0.5093 MB / 366.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.1891, allocations: 128.4 kB / 366.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.1892, allocations: 12 kB / 366.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000382/0.1896, allocations: 27.97 kB / 366.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.1898, allocations: 35.95 kB / 366.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.356e-05/0.1898, allocations: 19.98 kB / 366.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006357/0.1905, allocations: 323.1 kB / 366.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1905, allocations: 0 / 366.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009391/0.1915, allocations: 116 kB / 366.7 MB, free: 3.461 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: 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.001805/0.1933, allocations: 468.5 kB / 367.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.1945, allocations: 398.8 kB / 367.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.1945, allocations: 0.9375 kB / 367.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.1951, allocations: 243.2 kB / 367.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.1962, allocations: 85.44 kB / 367.9 MB, free: 2.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.1987, allocations: 0.956 MB / 368.9 MB, free: 1.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006739/0.1994, allocations: 0.8403 MB / 369.7 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.1996, allocations: 51.41 kB / 369.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1996, allocations: 0 / 369.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of Templates: time 0.2723/0.472, allocations: 6.285 MB / 376 MB, free: 24.16 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches