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.0007258/0.0007259, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00085/0.0008504, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002242, allocations: 11.98 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08488/0.08512, allocations: 51.51 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002819/0.08797, allocations: 2.144 MB / 362 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.09053, allocations: 1.433 MB / 363.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002866/0.09084, allocations: 11.94 kB / 363.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007094/0.09156, allocations: 203.3 kB / 363.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004937/0.09207, allocations: 171.4 kB / 363.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.09272, allocations: 227.4 kB / 364.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005598/0.09329, allocations: 471.6 kB / 364.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.09366, allocations: 197.8 kB / 364.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002486/0.09392, allocations: 147.2 kB / 364.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.09417, allocations: 175 kB / 365 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.477e-05/0.09423, allocations: 8 kB / 365 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.09445, allocations: 87.89 kB / 365.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.09457, allocations: 99.53 kB / 365.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.09478, allocations: 208.4 kB / 365.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.09521, allocations: 379.4 kB / 365.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.09522, allocations: 4 kB / 365.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09523, allocations: 0 / 365.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.09525, allocations: 0 / 365.8 MB, free: 7.309 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.001241/0.09649, allocations: 0.7698 MB / 366.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.09654, allocations: 8.031 kB / 366.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.09681, allocations: 68.2 kB / 366.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005096/0.09733, allocations: 398.9 kB / 367 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.09741, allocations: 55.27 kB / 367.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.455e-05/0.09748, allocations: 43.94 kB / 367.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/0.09815, allocations: 432.7 kB / 367.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.09817, allocations: 0 / 367.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.09821, allocations: 19.98 kB / 367.6 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.09824, allocations: 12.44 kB / 367.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004826/0.09873, allocations: 265.5 kB / 367.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.1007, allocations: 1.686 MB / 369.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.1012, allocations: 307.9 kB / 369.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.1015, allocations: 142.3 kB / 370 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-05/0.1015, allocations: 8 kB / 370 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004436/0.102, allocations: 323.7 kB / 370.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 7.203e-06/0.102, allocations: 0 / 370.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008953/0.1029, allocations: 478 kB / 370.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/0.103, allocations: 162.2 kB / 370.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005227/0.1035, allocations: 0.4933 MB / 371.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.1036, allocations: 37.7 kB / 371.5 MB, free: 1.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.1037, allocations: 236.6 kB / 371.7 MB, free: 1.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.515e-05/0.1038, allocations: 90.92 kB / 371.8 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.016e-05/0.1039, allocations: 73.67 kB / 371.8 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.104, allocations: 366.7 kB / 372.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.1043, allocations: 117.1 kB / 372.3 MB, free: 416 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.1046, allocations: 266.7 kB / 372.6 MB, free: 88 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1544/0.259, allocations: 394.9 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.2591, allocations: 2.219 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009245/0.26, allocations: 473.8 kB / 373.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.2601, allocations: 35.7 kB / 373.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.2601, allocations: 7.25 kB / 373.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.2601, allocations: 6.469 kB / 373.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.2603, allocations: 44 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.2603, allocations: 11.66 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.2606, allocations: 56.39 kB / 373.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.2607, allocations: 21.33 kB / 373.6 MB, free: 18.71 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.000298/0.261, allocations: 253.6 kB / 373.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.531e-05/0.2611, allocations: 48.39 kB / 373.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004816/0.2616, allocations: 238.7 kB / 374.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.2616, allocations: 3.75 kB / 374.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.2616, allocations: 5.266 kB / 374.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.2616, allocations: 2.656 kB / 374.2 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.2627, allocations: 0.7466 MB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.2627, allocations: 1.391 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.2628, allocations: 19.03 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2628, allocations: 2.188 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.2629, allocations: 12.42 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.2629, allocations: 5.812 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2629, allocations: 1.5 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007185/0.2636, allocations: 491.8 kB / 375.4 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.555e-05/0.2637, allocations: 123.3 kB / 375.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.161e-05/0.2638, allocations: 15.33 kB / 375.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.264, allocations: 32.47 kB / 375.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.2642, allocations: 46.52 kB / 375.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.2642, allocations: 15.2 kB / 375.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004502/0.2647, allocations: 331.5 kB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2647, allocations: 0 / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004985/0.2652, allocations: 110.4 kB / 376.1 MB, free: 17.81 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.0009679/0.2661, allocations: 459.4 kB / 376.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006611/0.2668, allocations: 391.3 kB / 376.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.2668, allocations: 3.938 kB / 376.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.2671, allocations: 241.7 kB / 377.1 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.2677, allocations: 86.23 kB / 377.2 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.2691, allocations: 0.9619 MB / 378.2 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.2695, allocations: 0.8358 MB / 379 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.2696, allocations: 45.33 kB / 379.1 MB, free: 16.23 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2696, allocations: 0 / 379.1 MB, free: 16.23 MB / 302.1 MB Notification: Performance of Templates: time 0.01031/0.2799, allocations: 6.051 MB / 385.1 MB, free: 15.09 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/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_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches