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.001397/0.001397, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.837/1.837, allocations: 205.4 MB / 222.5 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.001086/0.001086, allocations: 91.25 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003636, allocations: 8 kB / 327 MB, free: 240 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3173, allocations: 47.57 MB / 374.5 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.4443, allocations: 82.65 MB / 457.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.4446, allocations: 75.97 kB / 457.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03843/0.483, allocations: 9.09 MB / 466.3 MB, free: 4.953 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4831, allocations: 0 / 466.3 MB, free: 4.953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.547e-05/0.4831, allocations: 12 kB / 466.3 MB, free: 4.941 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.001634/0.4848, allocations: 0.7898 MB / 467.1 MB, free: 4.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.4848, allocations: 11.97 kB / 467.1 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.485, allocations: 63.34 kB / 467.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008534/0.4858, allocations: 386.2 kB / 467.6 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.293e-05/0.4859, allocations: 54.7 kB / 467.6 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.266e-05/0.486, allocations: 43.95 kB / 467.7 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009711/0.487, allocations: 424.7 kB / 468.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.4871, allocations: 0 / 468.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.4871, allocations: 12 kB / 468.1 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.714e-05/0.4872, allocations: 16.44 kB / 468.1 MB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007657/0.488, allocations: 261.4 kB / 468.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002747/0.4907, allocations: 1.671 MB / 470.1 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008748/0.4916, allocations: 307.8 kB / 470.4 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-05/0.4917, allocations: 8.234 kB / 470.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006347/0.4924, allocations: 325.2 kB / 470.7 MB, free: 312 kB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 2.625e-06/0.4924, allocations: 0 / 470.7 MB, free: 312 kB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.001515/0.4939, allocations: 0.558 MB / 471.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.494, allocations: 166.2 kB / 471.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/0.4948, allocations: 444.5 kB / 471.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.799e-05/0.4949, allocations: 37.7 kB / 471.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.4951, allocations: 282.9 kB / 472.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.4952, allocations: 75.03 kB / 472.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.4953, allocations: 12 kB / 472.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4954, allocations: 330.8 kB / 472.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.4958, allocations: 113.1 kB / 472.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.4963, allocations: 266.7 kB / 472.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.4968, allocations: 171.8 kB / 473.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.4968, allocations: 0 / 473.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001156/0.498, allocations: 463.1 kB / 473.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/0.498, allocations: 37.69 kB / 473.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.4981, allocations: 8.25 kB / 473.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.4981, allocations: 8 kB / 473.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.4983, allocations: 47.81 kB / 473.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.003e-05/0.4984, allocations: 11.98 kB / 473.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003838/0.4988, allocations: 43.98 kB / 473.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.909e-05/0.4989, allocations: 20 kB / 473.7 MB, free: 13.1 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.0003775/0.4992, allocations: 252.6 kB / 474 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4994, allocations: 43.53 kB / 474 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.5005, allocations: 421.2 kB / 474.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.5006, allocations: 4 kB / 474.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5006, allocations: 3.953 kB / 474.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.5006, allocations: 0 / 474.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/0.5024, allocations: 0.8024 MB / 475.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/0.5024, allocations: 3.984 kB / 475.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.5025, allocations: 19.89 kB / 475.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.5026, allocations: 8 kB / 475.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-05/0.5026, allocations: 15.98 kB / 475.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.5026, allocations: 4 kB / 475.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5026, allocations: 3.938 kB / 475.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.5038, allocations: 0.537 MB / 475.8 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.504, allocations: 128.5 kB / 475.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.5041, allocations: 12 kB / 476 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003552/0.5045, allocations: 32.08 kB / 476 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.5046, allocations: 39.88 kB / 476 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.453e-05/0.5047, allocations: 19.98 kB / 476 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005548/0.5053, allocations: 319.1 kB / 476.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.725e-06/0.5053, allocations: 0 / 476.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006765/0.506, allocations: 120.1 kB / 476.5 MB, free: 10.2 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.00132/0.5073, allocations: 464.9 kB / 476.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.5084, allocations: 407 kB / 477.3 MB, free: 9.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.5084, allocations: 4.797 kB / 477.3 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000583/0.509, allocations: 262.9 kB / 477.6 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.5096, allocations: 81.39 kB / 477.7 MB, free: 9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.5116, allocations: 0.9183 MB / 478.6 MB, free: 8.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.5121, allocations: 0.8481 MB / 479.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.5123, allocations: 47.42 kB / 479.5 MB, free: 7.121 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5124, allocations: 0 / 479.5 MB, free: 7.121 MB / 362.7 MB Notification: Performance of Templates: time 0.01388/0.5262, allocations: 6.316 MB / 485.8 MB, free: 0.8008 MB / 362.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