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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0008994/0.0008994, allocations: 177.2 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008987/0.0008987, allocations: 90.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.095e-05/2.09e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09631, allocations: 47.59 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4039/0.5002, allocations: 82.13 MB / 445.2 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003759/0.5007, allocations: 76.08 kB / 445.3 MB, free: 13.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04326/0.544, allocations: 8.987 MB / 454.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5441, allocations: 4 kB / 454.3 MB, free: 6.043 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.4e-05/0.5442, allocations: 12 kB / 454.3 MB, free: 6.031 MB / 330.7 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.001944/0.5461, allocations: 0.7273 MB / 455 MB, free: 5.281 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.5462, allocations: 12.03 kB / 455 MB, free: 5.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.5465, allocations: 55.34 kB / 455.1 MB, free: 5.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.5476, allocations: 379.4 kB / 455.4 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.5477, allocations: 45.8 kB / 455.5 MB, free: 4.793 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.5478, allocations: 27.95 kB / 455.5 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007169/0.5486, allocations: 214.2 kB / 455.7 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008585/0.5495, allocations: 368.2 kB / 456.1 MB, free: 4.297 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.5495, allocations: 0 / 456.1 MB, free: 4.297 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.5496, allocations: 4 kB / 456.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.432e-05/0.5496, allocations: 12.44 kB / 456.1 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002911/0.5525, allocations: 1.607 MB / 457.7 MB, free: 2.773 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007146/0.5533, allocations: 269.5 kB / 458 MB, free: 2.555 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/0.5536, allocations: 107.1 kB / 458.1 MB, free: 2.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-05/0.5537, allocations: 11.41 kB / 458.1 MB, free: 2.465 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006295/0.5543, allocations: 308.2 kB / 458.4 MB, free: 2.168 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 4.338e-06/0.5543, allocations: 0 / 458.4 MB, free: 2.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=37): time 0.001299/0.5557, allocations: 320 kB / 458.7 MB, free: 1.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.5558, allocations: 169.3 kB / 458.9 MB, free: 1.711 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009103/0.5567, allocations: 416.1 kB / 459.3 MB, free: 1.391 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.69e-05/0.5568, allocations: 33.14 kB / 459.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.5571, allocations: 230.1 kB / 459.5 MB, free: 1.191 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.5573, allocations: 81.08 kB / 459.6 MB, free: 1.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.754e-05/0.5573, allocations: 4 kB / 459.6 MB, free: 1.121 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002415/0.5576, allocations: 357.8 kB / 460 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.5579, allocations: 98.3 kB / 460 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.5583, allocations: 250.4 kB / 460.3 MB, free: 472 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.5589, allocations: 129.1 kB / 460.4 MB, free: 376 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.559, allocations: 0 / 460.4 MB, free: 376 kB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001283/0.5603, allocations: 382.4 kB / 460.8 MB, free: 56 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.202e-05/0.5604, allocations: 40.81 kB / 460.8 MB, free: 12 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.5604, allocations: 4 kB / 460.8 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/0.5604, allocations: 8 kB / 460.8 MB, free: 0 / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003117/0.5608, allocations: 46.64 kB / 460.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.5608, allocations: 12.41 kB / 460.9 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004504/0.5613, allocations: 39.7 kB / 460.9 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.531e-05/0.5614, allocations: 22.8 kB / 461 MB, free: 15.89 MB / 346.7 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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002713/0.5617, allocations: 182.5 kB / 461.1 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.5618, allocations: 47.38 kB / 461.2 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.563, allocations: 352.6 kB / 461.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.563, allocations: 8 kB / 461.5 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.5631, allocations: 0 / 461.5 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.5631, allocations: 3.938 kB / 461.5 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.565, allocations: 0.7278 MB / 462.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.565, allocations: 0 / 462.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.5651, allocations: 15.98 kB / 462.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.5651, allocations: 0 / 462.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.5652, allocations: 15.8 kB / 462.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/0.5652, allocations: 11.83 kB / 462.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5652, allocations: 0 / 462.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.5664, allocations: 477.8 kB / 462.8 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.5666, allocations: 128.4 kB / 462.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.5667, allocations: 7.125 kB / 462.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004096/0.5672, allocations: 31.97 kB / 462.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.5673, allocations: 35.2 kB / 463 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.692e-05/0.5674, allocations: 19.98 kB / 463 MB, free: 14.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005273/0.568, allocations: 296.9 kB / 463.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.568, allocations: 0 / 463.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008938/0.5689, allocations: 103.8 kB / 463.4 MB, free: 13.72 MB / 346.7 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001509/0.5704, allocations: 393 kB / 463.8 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009922/0.5714, allocations: 366.9 kB / 464.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.5714, allocations: 0.9375 kB / 464.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000471/0.5719, allocations: 226.2 kB / 464.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.5727, allocations: 83.27 kB / 464.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.5745, allocations: 0.5811 MB / 465 MB, free: 12.28 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006528/0.5752, allocations: 0.8506 MB / 465.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003894/0.5756, allocations: 83.41 kB / 465.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.5758, allocations: 43.11 kB / 466 MB, free: 11.28 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5758, allocations: 0 / 466 MB, free: 11.28 MB / 346.7 MB Notification: Performance of Templates: time 0.01701/0.5928, allocations: 4.814 MB / 470.8 MB, free: 6.477 MB / 346.7 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