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.001093/0.001093, allocations: 181.3 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.676/1.676, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009125/0.0009121, allocations: 100.1 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003256, allocations: 12 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3182, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1189/0.4372, allocations: 82.64 MB / 458.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003271/0.4376, allocations: 79.95 kB / 458.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02644/0.464, allocations: 9.089 MB / 467.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4641, allocations: 0 / 467.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.961e-05/0.4641, allocations: 16 kB / 467.6 MB, free: 4.812 MB / 346.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.001344/0.4655, allocations: 0.7859 MB / 468.4 MB, free: 3.961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.4656, allocations: 11.97 kB / 468.4 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.4657, allocations: 55.34 kB / 468.5 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.4664, allocations: 386.1 kB / 468.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.4665, allocations: 58.7 kB / 468.9 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.386e-05/0.4665, allocations: 43.94 kB / 468.9 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006802/0.4672, allocations: 424.7 kB / 469.4 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.4672, allocations: 4 kB / 469.4 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.4673, allocations: 16 kB / 469.4 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.4673, allocations: 12.44 kB / 469.4 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004678/0.4678, allocations: 265.4 kB / 469.7 MB, free: 2.629 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.4699, allocations: 1.667 MB / 471.3 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.4704, allocations: 299.9 kB / 471.6 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.434e-05/0.4705, allocations: 16.06 kB / 471.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.471, allocations: 329.2 kB / 471.9 MB, free: 184 kB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.471, allocations: 0 / 471.9 MB, free: 184 kB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.001086/0.4721, allocations: 0.558 MB / 472.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002177/0.4723, allocations: 166.2 kB / 472.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000643/0.473, allocations: 440.5 kB / 473.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.692e-05/0.4731, allocations: 41.7 kB / 473.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.4733, allocations: 236.5 kB / 473.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.4735, allocations: 87 kB / 473.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/0.4735, allocations: 12 kB / 473.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002652/0.4738, allocations: 350.8 kB / 473.8 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.474, allocations: 121 kB / 473.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.4744, allocations: 270.7 kB / 474.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.4748, allocations: 163.8 kB / 474.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4748, allocations: 0 / 474.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008311/0.4756, allocations: 478.4 kB / 474.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.4757, allocations: 37.64 kB / 474.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.4757, allocations: 4 kB / 474.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.004e-05/0.4757, allocations: 8.062 kB / 474.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.4759, allocations: 55.8 kB / 474.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.4759, allocations: 8.469 kB / 474.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002701/0.4762, allocations: 43.91 kB / 475 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.697e-05/0.4763, allocations: 24 kB / 475 MB, free: 12.96 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003132/0.4766, allocations: 248.6 kB / 475.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.626e-05/0.4767, allocations: 43.44 kB / 475.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007486/0.4774, allocations: 417.1 kB / 475.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.4775, allocations: 8 kB / 475.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4775, allocations: 3.953 kB / 475.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.4775, allocations: 7.922 kB / 475.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.4786, allocations: 0.7986 MB / 476.5 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4786, allocations: 0 / 476.5 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-05/0.4787, allocations: 35.86 kB / 476.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.4787, allocations: 0 / 476.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/0.4787, allocations: 15.98 kB / 476.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.4788, allocations: 0 / 476.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.4788, allocations: 4 kB / 476.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007554/0.4795, allocations: 0.5331 MB / 477.1 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.4797, allocations: 128.5 kB / 477.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.657e-05/0.4797, allocations: 12 kB / 477.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.4799, allocations: 31.97 kB / 477.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.4801, allocations: 43.94 kB / 477.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.4801, allocations: 12 kB / 477.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003814/0.4805, allocations: 319.1 kB / 477.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4805, allocations: 0 / 477.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004987/0.481, allocations: 124.2 kB / 477.8 MB, free: 10.07 MB / 362.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) * Number of clocked states: 0 () * 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.001025/0.4821, allocations: 465.2 kB / 478.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006974/0.4828, allocations: 411.6 kB / 478.6 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4828, allocations: 0 / 478.6 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003392/0.4831, allocations: 250.9 kB / 478.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.4836, allocations: 77.41 kB / 478.9 MB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.485, allocations: 0.8895 MB / 479.8 MB, free: 7.969 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.4855, allocations: 0.8481 MB / 480.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.4857, allocations: 83.64 kB / 480.7 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.4858, allocations: 43.42 kB / 480.8 MB, free: 6.965 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4858, allocations: 4 kB / 480.8 MB, free: 6.961 MB / 362.7 MB Notification: Performance of Templates: time 0.01113/0.497, allocations: 5.111 MB / 485.9 MB, free: 1.848 MB / 362.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