Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009405/0.0009405, allocations: 184.9 kB / 8.139 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009351/0.0009351, allocations: 89.22 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.372e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09358/0.2936, allocations: 83.05 MB / 470 MB, free: 3.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.2939, allocations: 67.97 kB / 470 MB, free: 3.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02518/0.3191, allocations: 8.798 MB / 478.8 MB, free: 10.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.557e-05/0.3192, allocations: 19.92 kB / 478.8 MB, free: 10.88 MB / 362.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.001026/0.3202, allocations: 0.7232 MB / 479.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.3203, allocations: 8.031 kB / 479.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.3204, allocations: 55.34 kB / 479.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/0.321, allocations: 396.3 kB / 480 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.635e-05/0.3211, allocations: 42.48 kB / 480.1 MB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/0.3211, allocations: 24 kB / 480.1 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004017/0.3215, allocations: 213.5 kB / 480.3 MB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00052/0.3221, allocations: 377.5 kB / 480.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3221, allocations: 0 / 480.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.3221, allocations: 4 kB / 480.7 MB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.3222, allocations: 12.44 kB / 480.7 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.3239, allocations: 1.61 MB / 482.3 MB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.3242, allocations: 258 kB / 482.5 MB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.3244, allocations: 114.6 kB / 482.6 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.264e-05/0.3245, allocations: 8 kB / 482.7 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.3248, allocations: 309.1 kB / 483 MB, free: 6.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.873e-06/0.3249, allocations: 0 / 483 MB, free: 6.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006492/0.3255, allocations: 292.8 kB / 483.2 MB, free: 6.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.3256, allocations: 162.4 kB / 483.4 MB, free: 5.996 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004553/0.326, allocations: 416.6 kB / 483.8 MB, free: 5.582 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.3261, allocations: 29.7 kB / 483.8 MB, free: 5.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.3262, allocations: 192.5 kB / 484 MB, free: 5.355 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.3263, allocations: 79.05 kB / 484.1 MB, free: 5.277 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.726e-05/0.3263, allocations: 0 / 484.1 MB, free: 5.277 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3264, allocations: 354.8 kB / 484.4 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.3266, allocations: 101 kB / 484.5 MB, free: 4.824 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.3269, allocations: 250.2 kB / 484.8 MB, free: 4.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.3272, allocations: 123.9 kB / 484.9 MB, free: 4.398 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3272, allocations: 0 / 484.9 MB, free: 4.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006815/0.3279, allocations: 393 kB / 485.3 MB, free: 4.008 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.3279, allocations: 4 kB / 485.3 MB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.328, allocations: 4 kB / 485.3 MB, free: 4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.328, allocations: 8.469 kB / 485.3 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.3282, allocations: 43.86 kB / 485.4 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.3282, allocations: 19.83 kB / 485.4 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.3284, allocations: 23.98 kB / 485.4 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.885e-05/0.3285, allocations: 24 kB / 485.4 MB, free: 3.883 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 () * 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.0001655/0.3287, allocations: 182.6 kB / 485.6 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.3287, allocations: 43.47 kB / 485.6 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006812/0.3294, allocations: 336.7 kB / 486 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.3295, allocations: 4 kB / 486 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3295, allocations: 7.938 kB / 486 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3295, allocations: 3.984 kB / 486 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.3306, allocations: 0.7315 MB / 486.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3306, allocations: 0 / 486.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.3307, allocations: 19.92 kB / 486.7 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.3307, allocations: 4 kB / 486.7 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.3307, allocations: 12 kB / 486.8 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3308, allocations: 4 kB / 486.8 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3308, allocations: 3.672 kB / 486.8 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00064/0.3314, allocations: 459.4 kB / 487.2 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.3316, allocations: 132.6 kB / 487.3 MB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.542e-05/0.3317, allocations: 4 kB / 487.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.3319, allocations: 27.97 kB / 487.4 MB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.332, allocations: 39.86 kB / 487.4 MB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.891e-05/0.3321, allocations: 19.98 kB / 487.4 MB, free: 1.766 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003016/0.3324, allocations: 295.2 kB / 487.7 MB, free: 1.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004865/0.3329, allocations: 96.19 kB / 487.8 MB, free: 1.387 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) * 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.0007733/0.3336, allocations: 361.1 kB / 488.2 MB, free: 1.105 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005449/0.3342, allocations: 331 kB / 488.5 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3342, allocations: 0 / 488.5 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002659/0.3345, allocations: 201.5 kB / 488.7 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.335, allocations: 58.39 kB / 488.7 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.3362, allocations: 0.6013 MB / 489.3 MB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004859/0.3367, allocations: 0.8941 MB / 490.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3367, allocations: 0 / 490.2 MB, free: 14.96 MB / 378.7 MB Notification: Performance of Templates: time 0.01043/0.3471, allocations: 5.325 MB / 495.6 MB, free: 9.672 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches