Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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 3.2.3+maint.om/package.mo): time 0.001501/0.001502, allocations: 183.7 kB / 8.48 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.2 MB / 214.1 MB, free: 5.156 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008431/0.0008431, allocations: 82.53 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.534e-06/7.574e-06, allocations: 0 / 314.9 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07541/0.07543, allocations: 47.59 MB / 362.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2287/0.3041, allocations: 81.81 MB / 444.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.3044, allocations: 72.3 kB / 444.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02059/0.325, allocations: 8.628 MB / 453 MB, free: 8.418 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.325, allocations: 15.28 kB / 453.1 MB, free: 8.414 MB / 314.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.0007924/0.3258, allocations: 0.7329 MB / 453.8 MB, free: 7.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3259, allocations: 11.53 kB / 453.8 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.341e-05/0.326, allocations: 62.61 kB / 453.9 MB, free: 7.773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.3265, allocations: 382.1 kB / 454.2 MB, free: 7.492 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.55e-05/0.3265, allocations: 47.44 kB / 454.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.3266, allocations: 26.47 kB / 454.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003328/0.3269, allocations: 216.5 kB / 454.5 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000411/0.3273, allocations: 370.9 kB / 454.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3274, allocations: 3.781 kB / 454.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.3274, allocations: 0 / 454.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.3274, allocations: 11.97 kB / 454.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.3287, allocations: 1.599 MB / 456.5 MB, free: 6.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002827/0.329, allocations: 262.3 kB / 456.8 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.3292, allocations: 111.5 kB / 456.9 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.775e-05/0.3292, allocations: 14.53 kB / 456.9 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.3295, allocations: 295.7 kB / 457.2 MB, free: 5.672 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.3295, allocations: 0 / 457.2 MB, free: 5.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.0005711/0.3301, allocations: 300.3 kB / 457.5 MB, free: 5.578 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.3301, allocations: 161.9 kB / 457.6 MB, free: 5.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.3305, allocations: 424.8 kB / 458 MB, free: 5.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.363e-05/0.3305, allocations: 36.98 kB / 458.1 MB, free: 5.195 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.3306, allocations: 176.3 kB / 458.2 MB, free: 5.062 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.3306, allocations: 71.61 kB / 458.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.708e-05/0.3307, allocations: 0 / 458.3 MB, free: 5.023 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.315e-05/0.3307, allocations: 359.9 kB / 458.7 MB, free: 4.691 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.3309, allocations: 103 kB / 458.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.3311, allocations: 250.2 kB / 459 MB, free: 4.504 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002874/0.3314, allocations: 124.3 kB / 459.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3314, allocations: 9.188 kB / 459.1 MB, free: 4.473 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006343/0.332, allocations: 378.2 kB / 459.5 MB, free: 4.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.3321, allocations: 3.938 kB / 459.5 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3321, allocations: 5.594 kB / 459.5 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.3321, allocations: 14.41 kB / 459.5 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.3323, allocations: 42.8 kB / 459.6 MB, free: 4.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3323, allocations: 14.73 kB / 459.6 MB, free: 4.336 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.3325, allocations: 36.7 kB / 459.6 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.3326, allocations: 24.91 kB / 459.6 MB, free: 4.316 MB / 314.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.0001277/0.3327, allocations: 176.8 kB / 459.8 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.366e-05/0.3328, allocations: 45 kB / 459.9 MB, free: 4.137 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006336/0.3334, allocations: 333.3 kB / 460.2 MB, free: 4.035 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3334, allocations: 5.125 kB / 460.2 MB, free: 4.035 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.3334, allocations: 1.344 kB / 460.2 MB, free: 4.035 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3335, allocations: 7.984 kB / 460.2 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009345/0.3344, allocations: 0.7334 MB / 460.9 MB, free: 3.613 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3344, allocations: 0 / 460.9 MB, free: 3.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.333e-05/0.3345, allocations: 23.48 kB / 461 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3345, allocations: 1.344 kB / 461 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.3345, allocations: 9.219 kB / 461 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3345, allocations: 1.344 kB / 461 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3345, allocations: 1.312 kB / 461 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005745/0.3351, allocations: 461.6 kB / 461.4 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-05/0.3352, allocations: 125.3 kB / 461.5 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.3353, allocations: 11.94 kB / 461.6 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.3355, allocations: 30.25 kB / 461.6 MB, free: 3.203 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3356, allocations: 38.22 kB / 461.6 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.3357, allocations: 15.03 kB / 461.6 MB, free: 3.188 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002715/0.336, allocations: 296.6 kB / 461.9 MB, free: 3.074 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004951/0.3365, allocations: 98.88 kB / 462 MB, free: 3.062 MB / 314.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.0006497/0.3371, allocations: 354.1 kB / 462.4 MB, free: 2.809 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000473/0.3376, allocations: 327 kB / 462.7 MB, free: 2.746 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3376, allocations: 0 / 462.7 MB, free: 2.746 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.3379, allocations: 203.5 kB / 462.9 MB, free: 2.695 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004863/0.3384, allocations: 69.31 kB / 463 MB, free: 2.676 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3395, allocations: 0.5974 MB / 463.6 MB, free: 2.406 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004705/0.3399, allocations: 0.8906 MB / 464.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3399, allocations: 0 / 464.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of Templates: time 0.01087/0.3508, allocations: 5.347 MB / 469.8 MB, free: 14.98 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches