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.001918/0.001918, allocations: 182.1 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.903/3.903, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.005359/0.005359, allocations: 88.08 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005768/0.0005771, allocations: 15.97 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.525/0.5256, allocations: 47.56 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1833/0.709, allocations: 82.73 MB / 458.4 MB, free: 13.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004731/0.7095, allocations: 71.97 kB / 458.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04679/0.7564, allocations: 9.096 MB / 467.6 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.7564, allocations: 0 / 467.6 MB, free: 4.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.853e-05/0.7565, allocations: 12 kB / 467.6 MB, free: 4.676 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.001942/0.7585, allocations: 0.7861 MB / 468.4 MB, free: 3.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.798e-05/0.7586, allocations: 12.03 kB / 468.4 MB, free: 3.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.7587, allocations: 56.28 kB / 468.5 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009341/0.7597, allocations: 399.1 kB / 468.9 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.7598, allocations: 59.25 kB / 468.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.7599, allocations: 44.31 kB / 469 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.761, allocations: 429.2 kB / 469.4 MB, free: 2.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.761, allocations: 3.938 kB / 469.4 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.662e-05/0.7611, allocations: 16 kB / 469.4 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-05/0.7611, allocations: 16.44 kB / 469.4 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005157/0.7663, allocations: 253.5 kB / 469.7 MB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00337/0.7697, allocations: 1.671 MB / 471.3 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008639/0.7706, allocations: 303.2 kB / 471.6 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003445/0.771, allocations: 126.5 kB / 471.8 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.691e-05/0.7711, allocations: 15.94 kB / 471.8 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007411/0.7719, allocations: 328.3 kB / 472.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 4.208e-06/0.7719, allocations: 0 / 472.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.005682/0.7776, allocations: 490.6 kB / 472.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002059/0.7779, allocations: 166.2 kB / 472.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.7791, allocations: 481.2 kB / 473.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001747/0.7793, allocations: 41.7 kB / 473.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/0.7797, allocations: 240.5 kB / 473.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.7799, allocations: 83.05 kB / 473.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.7799, allocations: 8 kB / 473.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002478/0.7802, allocations: 358.8 kB / 473.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004206/0.7806, allocations: 113.1 kB / 474 MB, free: 13.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.7811, allocations: 270.6 kB / 474.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008806/0.782, allocations: 425 kB / 474.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.782, allocations: 0 / 474.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001268/0.7833, allocations: 482.2 kB / 475.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.961e-05/0.7834, allocations: 37.64 kB / 475.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.7834, allocations: 4.469 kB / 475.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.487e-05/0.7835, allocations: 12 kB / 475.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.7837, allocations: 47.84 kB / 475.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/0.7837, allocations: 4 kB / 475.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003991/0.7842, allocations: 43.83 kB / 475.3 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/0.7842, allocations: 27.98 kB / 475.4 MB, free: 12.41 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.0005244/0.7848, allocations: 252.6 kB / 475.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.7849, allocations: 43.44 kB / 475.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005502/0.7904, allocations: 413.3 kB / 476 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.7905, allocations: 4 kB / 476 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/0.7906, allocations: 8.062 kB / 476.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.7906, allocations: 11.92 kB / 476.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.7927, allocations: 0.8024 MB / 476.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.7927, allocations: 0 / 476.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.7929, allocations: 19.92 kB / 476.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.766e-06/0.7929, allocations: 4 kB / 476.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.7929, allocations: 12 kB / 476.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.793, allocations: 4 kB / 476.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.793, allocations: 3.938 kB / 476.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.7942, allocations: 0.5102 MB / 477.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.7944, allocations: 128.5 kB / 477.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.925e-05/0.7945, allocations: 20 kB / 477.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.7948, allocations: 27.97 kB / 477.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.795, allocations: 35.89 kB / 477.6 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.838e-05/0.7951, allocations: 19.98 kB / 477.7 MB, free: 9.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006371/0.7957, allocations: 323.1 kB / 478 MB, free: 9.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7957, allocations: 0 / 478 MB, free: 9.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009942/0.7967, allocations: 120.2 kB / 478.1 MB, free: 9.551 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.005793/0.8025, allocations: 463.7 kB / 478.5 MB, free: 9.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.8041, allocations: 411.1 kB / 478.9 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/0.8041, allocations: 3.859 kB / 478.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000563/0.8047, allocations: 247.1 kB / 479.2 MB, free: 8.453 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.8058, allocations: 82.16 kB / 479.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.8083, allocations: 0.9301 MB / 480.2 MB, free: 7.398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007735/0.8091, allocations: 0.8442 MB / 481 MB, free: 6.527 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.8093, allocations: 47.61 kB / 481.1 MB, free: 6.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.883e-06/0.8093, allocations: 0 / 481.1 MB, free: 6.48 MB / 362.7 MB Notification: Performance of Templates: time 0.02286/0.8322, allocations: 6.344 MB / 487.4 MB, free: 136 kB / 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