Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") [: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.002439/0.002438, allocations: 181.6 kB / 8.15 MB, free: 2.102 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.847/1.847, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001281/0.001281, allocations: 89.95 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.415e-06/9.187e-06, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2296, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1174/0.3471, allocations: 76.49 MB / 438.3 MB, free: 9.594 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004071/0.3476, allocations: 63.97 kB / 438.4 MB, free: 9.531 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0187/0.3663, allocations: 2.497 MB / 440.9 MB, free: 7.074 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.3664, allocations: 4 kB / 440.9 MB, free: 7.07 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.00133/0.3677, allocations: 494.5 kB / 441.4 MB, free: 6.543 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.3678, allocations: 8.031 kB / 441.4 MB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.3679, allocations: 23.72 kB / 441.4 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.3684, allocations: 230.7 kB / 441.6 MB, free: 6.246 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.3685, allocations: 11.94 kB / 441.6 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.3685, allocations: 8 kB / 441.6 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005127/0.3691, allocations: 109.5 kB / 441.7 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000593/0.3697, allocations: 175.8 kB / 441.9 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3697, allocations: 0 / 441.9 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.3697, allocations: 0 / 441.9 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.155e-05/0.3698, allocations: 14.36 kB / 441.9 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.372, allocations: 0.7588 MB / 442.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006933/0.3727, allocations: 131.8 kB / 442.8 MB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.3729, allocations: 52.84 kB / 442.9 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.373, allocations: 0 / 442.9 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003472/0.3734, allocations: 132.3 kB / 443 MB, free: 4.773 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.585e-06/0.3734, allocations: 0 / 443 MB, free: 4.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006731/0.3741, allocations: 153.4 kB / 443.1 MB, free: 4.617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.3742, allocations: 78.14 kB / 443.2 MB, free: 4.523 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.3745, allocations: 182.8 kB / 443.4 MB, free: 4.336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.738e-05/0.3746, allocations: 33.64 kB / 443.4 MB, free: 4.297 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.3748, allocations: 190.8 kB / 443.6 MB, free: 4.109 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.359e-05/0.3749, allocations: 35.59 kB / 443.7 MB, free: 4.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/0.3749, allocations: 4 kB / 443.7 MB, free: 4.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.375, allocations: 310.8 kB / 444 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.3752, allocations: 59.97 kB / 444 MB, free: 3.699 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.3754, allocations: 116.6 kB / 444.1 MB, free: 3.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.3757, allocations: 71.33 kB / 444.2 MB, free: 3.488 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3757, allocations: 6.344 kB / 444.2 MB, free: 3.484 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005492/0.3763, allocations: 193.3 kB / 444.4 MB, free: 3.289 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3763, allocations: 4 kB / 444.4 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.3763, allocations: 4 kB / 444.4 MB, free: 3.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3763, allocations: 4 kB / 444.4 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003546/0.3767, allocations: 43.91 kB / 444.5 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3767, allocations: 7.453 kB / 444.5 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.377, allocations: 31.89 kB / 444.5 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.3771, allocations: 8 kB / 444.5 MB, free: 3.191 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001089/0.3772, allocations: 55.53 kB / 444.6 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.408e-05/0.3773, allocations: 19.75 kB / 444.6 MB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003662/0.3776, allocations: 109.2 kB / 444.7 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3777, allocations: 4 kB / 444.7 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.3777, allocations: 0 / 444.7 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3777, allocations: 3.984 kB / 444.7 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009064/0.3786, allocations: 448.5 kB / 445.1 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3786, allocations: 0 / 445.1 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.3789, allocations: 23.92 kB / 445.1 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.3789, allocations: 4 kB / 445.2 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.3789, allocations: 0 / 445.2 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3789, allocations: 0 / 445.2 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.379, allocations: 8 kB / 445.2 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004716/0.3794, allocations: 254.7 kB / 445.4 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.763e-05/0.3795, allocations: 104.8 kB / 445.5 MB, free: 2.086 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/0.3796, allocations: 4 kB / 445.5 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.38, allocations: 23.98 kB / 445.5 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.3801, allocations: 23.91 kB / 445.6 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.3801, allocations: 11.89 kB / 445.6 MB, free: 2.023 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001549/0.3803, allocations: 124.2 kB / 445.7 MB, free: 1.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004003/0.3807, allocations: 39.92 kB / 445.7 MB, free: 1.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002047/0.3809, allocations: 116.5 kB / 445.8 MB, free: 1.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004336/0.3814, allocations: 135.8 kB / 446 MB, free: 1.609 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3814, allocations: 0 / 446 MB, free: 1.609 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.3816, allocations: 67.92 kB / 446 MB, free: 1.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.382, allocations: 32.67 kB / 446.1 MB, free: 1.512 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009435/0.383, allocations: 281.9 kB / 446.4 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/0.3835, allocations: 0.7587 MB / 447.1 MB, free: 424 kB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3835, allocations: 0 / 447.1 MB, free: 424 kB / 330.7 MB Notification: Performance of Templates: time 0.006295/0.3898, allocations: 2.341 MB / 449.5 MB, free: 14.12 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches