Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001535/0.001535, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001073/0.001073, allocations: 78.77 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.764e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09209, allocations: 47.58 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4203/0.5125, allocations: 82.55 MB / 451.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003904/0.5129, allocations: 69.59 kB / 451.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06593/0.5789, allocations: 9.052 MB / 460.7 MB, free: 2.949 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.579, allocations: 0 / 460.7 MB, free: 2.949 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.967e-05/0.5791, allocations: 19.98 kB / 460.8 MB, free: 2.93 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.002239/0.5813, allocations: 0.7292 MB / 461.5 MB, free: 2.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.5814, allocations: 8.031 kB / 461.5 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002888/0.5817, allocations: 59.34 kB / 461.6 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.5832, allocations: 381.2 kB / 461.9 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001268/0.5833, allocations: 59.17 kB / 462 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.5835, allocations: 42.2 kB / 462 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.5849, allocations: 414.9 kB / 462.4 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.585, allocations: 0 / 462.4 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.927e-05/0.585, allocations: 14.88 kB / 462.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.638e-05/0.5851, allocations: 24.36 kB / 462.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.5863, allocations: 245.6 kB / 462.7 MB, free: 1.113 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/0.5912, allocations: 1.673 MB / 464.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.5924, allocations: 286.5 kB / 464.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.5929, allocations: 122.3 kB / 464.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/0.5931, allocations: 16 kB / 464.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009636/0.594, allocations: 312.8 kB / 465.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 9.739e-06/0.5941, allocations: 3.984 kB / 465.1 MB, free: 14.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.00166/0.5958, allocations: 370.2 kB / 465.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001608/0.596, allocations: 174.1 kB / 465.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.5972, allocations: 438.5 kB / 466.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.5974, allocations: 45.7 kB / 466.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003432/0.5978, allocations: 259.2 kB / 466.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.598, allocations: 90.94 kB / 466.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.508e-05/0.5981, allocations: 8 kB / 466.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.5983, allocations: 326.8 kB / 466.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.5988, allocations: 113.1 kB / 466.9 MB, free: 13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007189/0.5996, allocations: 254.7 kB / 467.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005955/0.6002, allocations: 167.8 kB / 467.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.6002, allocations: 0 / 467.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001732/0.602, allocations: 438.7 kB / 467.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/0.6021, allocations: 37.69 kB / 467.8 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.6021, allocations: 4 kB / 467.8 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.014e-05/0.6022, allocations: 11.95 kB / 467.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003933/0.6026, allocations: 39.86 kB / 467.8 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.827e-05/0.6027, allocations: 8 kB / 467.8 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007463/0.6034, allocations: 56.09 kB / 467.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.6036, allocations: 20 kB / 467.9 MB, free: 11.9 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.0003897/0.604, allocations: 183.8 kB / 468.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.6042, allocations: 47.44 kB / 468.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.606, allocations: 406.7 kB / 468.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.6061, allocations: 4 kB / 468.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.6061, allocations: 3.953 kB / 468.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/0.6062, allocations: 7.984 kB / 468.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.6089, allocations: 0.783 MB / 469.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.6089, allocations: 7.953 kB / 469.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.6092, allocations: 23.92 kB / 469.4 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.671e-05/0.6092, allocations: 8.031 kB / 469.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.059e-05/0.6093, allocations: 15.92 kB / 469.4 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.278e-05/0.6093, allocations: 4 kB / 469.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6093, allocations: 0 / 469.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.6111, allocations: 0.5243 MB / 469.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.6114, allocations: 132.5 kB / 470 MB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.6116, allocations: 8 kB / 470.1 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006135/0.6122, allocations: 27.98 kB / 470.1 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.6124, allocations: 43.94 kB / 470.1 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.444e-05/0.6125, allocations: 19.98 kB / 470.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008845/0.6134, allocations: 313.2 kB / 470.4 MB, free: 9.211 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.6135, allocations: 0 / 470.4 MB, free: 9.211 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001223/0.6147, allocations: 116.2 kB / 470.6 MB, free: 9.098 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.001965/0.6167, allocations: 429.5 kB / 471 MB, free: 8.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.6184, allocations: 399 kB / 471.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.6184, allocations: 0 / 471.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008296/0.6193, allocations: 243.2 kB / 471.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.6205, allocations: 82.34 kB / 471.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.6232, allocations: 0.6361 MB / 472.3 MB, free: 7.281 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007596/0.624, allocations: 0.8481 MB / 473.2 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003689/0.6244, allocations: 47.42 kB / 473.2 MB, free: 6.355 MB / 346.7 MB Notification: Performance of SimCode: time 1.834e-06/0.6245, allocations: 0 / 473.2 MB, free: 6.355 MB / 346.7 MB Notification: Performance of Templates: time 0.02502/0.6495, allocations: 6.319 MB / 479.5 MB, free: 24 kB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches