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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.0009814/0.0009813, allocations: 196.9 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008043/0.000804, allocations: 101.9 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000213/0.0002132, allocations: 11.98 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2316, allocations: 51.28 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3378, allocations: 85.07 MB / 494.4 MB, free: 6.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.3381, allocations: 79.95 kB / 494.5 MB, free: 6.332 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02799/0.3661, allocations: 10.03 MB / 0.4927 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3661, allocations: 0 / 0.4927 GB, free: 12.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.36e-05/0.3662, allocations: 16 kB / 0.4927 GB, free: 12.27 MB / 378.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.001553/0.3678, allocations: 0.8134 MB / 0.4935 GB, free: 11.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3678, allocations: 12.03 kB / 0.4935 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.368, allocations: 60.28 kB / 0.4936 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007422/0.3688, allocations: 407.1 kB / 0.494 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.019e-05/0.3689, allocations: 63.27 kB / 0.494 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.684e-05/0.3689, allocations: 36.38 kB / 0.4941 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000716/0.3697, allocations: 433.2 kB / 0.4945 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3697, allocations: 3.938 kB / 0.4945 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/0.3697, allocations: 12 kB / 0.4945 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.901e-05/0.3698, allocations: 20.36 kB / 0.4945 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004949/0.3703, allocations: 253.5 kB / 0.4948 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.3724, allocations: 1.682 MB / 0.4964 GB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006025/0.373, allocations: 292 kB / 0.4967 GB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.3733, allocations: 126.5 kB / 0.4968 GB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.104e-05/0.3734, allocations: 12.06 kB / 0.4968 GB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004437/0.3738, allocations: 331.9 kB / 0.4971 GB, free: 7.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.955e-06/0.3738, allocations: 0 / 0.4971 GB, free: 7.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.00101/0.3748, allocations: 491.5 kB / 0.4976 GB, free: 6.965 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.202e-05/0.3749, allocations: 162.2 kB / 0.4978 GB, free: 6.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006075/0.3755, allocations: 0.4973 MB / 0.4982 GB, free: 6.262 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.159e-05/0.3756, allocations: 37.7 kB / 0.4983 GB, free: 6.219 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.3758, allocations: 228.6 kB / 0.4985 GB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.86e-05/0.3759, allocations: 87.03 kB / 0.4986 GB, free: 5.902 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.906e-05/0.3759, allocations: 8 kB / 0.4986 GB, free: 5.895 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3761, allocations: 358.8 kB / 0.4989 GB, free: 5.535 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.3763, allocations: 113.1 kB / 0.499 GB, free: 5.422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.3767, allocations: 270.7 kB / 0.4993 GB, free: 5.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005479/0.3772, allocations: 418.5 kB / 0.4997 GB, free: 4.625 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.3772, allocations: 4 kB / 0.4997 GB, free: 4.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008027/0.378, allocations: 477.8 kB / 0.5002 GB, free: 4.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/0.3781, allocations: 37.69 kB / 0.5002 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.3781, allocations: 7.938 kB / 0.5002 GB, free: 4.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.3782, allocations: 8 kB / 0.5002 GB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.3783, allocations: 35.92 kB / 0.5002 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.213e-05/0.3783, allocations: 15.92 kB / 0.5003 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.3787, allocations: 40.02 kB / 0.5003 GB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.613e-05/0.3787, allocations: 24.31 kB / 0.5003 GB, free: 3.973 MB / 378.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.0003444/0.3791, allocations: 260.5 kB / 0.5006 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.197e-05/0.3792, allocations: 51.38 kB / 0.5006 GB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007997/0.38, allocations: 418.5 kB / 0.501 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.38, allocations: 4 kB / 0.501 GB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.38, allocations: 4 kB / 0.501 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.38, allocations: 0 / 0.501 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.3812, allocations: 0.8064 MB / 0.5018 GB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3813, allocations: 0 / 0.5018 GB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.3813, allocations: 19.92 kB / 0.5018 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3813, allocations: 0 / 0.5018 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.3814, allocations: 16 kB / 0.5018 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3814, allocations: 0 / 0.5018 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3814, allocations: 3.938 kB / 0.5018 GB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007451/0.3822, allocations: 0.5258 MB / 0.5024 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.3823, allocations: 128.5 kB / 0.5025 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.968e-05/0.3824, allocations: 19.94 kB / 0.5025 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.3826, allocations: 27.97 kB / 0.5025 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.3827, allocations: 43.97 kB / 0.5026 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.822e-05/0.3828, allocations: 23.94 kB / 0.5026 GB, free: 1.516 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000402/0.3832, allocations: 323.1 kB / 0.5029 GB, free: 1.199 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3832, allocations: 0 / 0.5029 GB, free: 1.199 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005667/0.3838, allocations: 120.2 kB / 0.503 GB, free: 1.082 MB / 378.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.001041/0.3848, allocations: 462.1 kB / 0.5035 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007457/0.3856, allocations: 415 kB / 0.5039 GB, free: 360 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3856, allocations: 0 / 0.5039 GB, free: 360 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.386, allocations: 244.1 kB / 0.5041 GB, free: 104 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.3866, allocations: 82.31 kB / 0.5042 GB, free: 20 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1856/0.5721, allocations: 0.8797 MB / 0.505 GB, free: 93.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.5727, allocations: 0.8434 MB / 0.5058 GB, free: 93.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003394/0.573, allocations: 77.55 kB / 0.5059 GB, free: 93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.5731, allocations: 44.39 kB / 0.506 GB, free: 93 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5731, allocations: 3.219 kB / 0.506 GB, free: 93 MB / 378.7 MB Notification: Performance of Templates: time 0.01264/0.5858, allocations: 5.204 MB / 0.5111 GB, free: 92.76 MB / 378.7 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","../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches