Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") [: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.00101/0.00101, allocations: 184 kB / 8.479 MB, free: 1.871 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.182/1.182, allocations: 205.2 MB / 214.1 MB, free: 5.164 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.0008677/0.0008677, allocations: 94.23 kB / 262.1 MB, free: 5.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.352e-06, allocations: 3.938 kB / 315 MB, free: 41.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0751/0.07512, allocations: 47.57 MB / 362.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2641/0.3393, allocations: 76.06 MB / 438.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.3396, allocations: 65.03 kB / 438.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.007519/0.3471, allocations: 2.38 MB / 441 MB, free: 10.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.3472, allocations: 3.844 kB / 441 MB, free: 10.52 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006108/0.3478, allocations: 484.3 kB / 441.5 MB, free: 10.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3478, allocations: 7.688 kB / 441.5 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.624e-05/0.3479, allocations: 23.31 kB / 441.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.3481, allocations: 232.1 kB / 441.8 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.3482, allocations: 4.391 kB / 441.8 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.3482, allocations: 7.594 kB / 441.8 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002273/0.3484, allocations: 108.3 kB / 441.9 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.3487, allocations: 168.8 kB / 442 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.3487, allocations: 3.812 kB / 442.1 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.3487, allocations: 4.781 kB / 442.1 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.3488, allocations: 8.484 kB / 442.1 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009501/0.3497, allocations: 0.7523 MB / 442.8 MB, free: 9.297 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.3499, allocations: 133.5 kB / 442.9 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.247e-05/0.35, allocations: 68.5 kB / 443 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.837e-05/0.3501, allocations: 4.469 kB / 443 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.3502, allocations: 132.1 kB / 443.1 MB, free: 9.152 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.3502, allocations: 0 / 443.1 MB, free: 9.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.000335/0.3506, allocations: 149.9 kB / 443.3 MB, free: 9.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.3506, allocations: 88.66 kB / 443.4 MB, free: 9.016 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.3507, allocations: 162.6 kB / 443.5 MB, free: 8.914 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3508, allocations: 29.55 kB / 443.6 MB, free: 8.883 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.618e-05/0.3508, allocations: 125.5 kB / 443.7 MB, free: 8.781 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.3509, allocations: 39.02 kB / 443.7 MB, free: 8.758 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-06/0.3509, allocations: 4 kB / 443.7 MB, free: 8.754 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.105e-05/0.3509, allocations: 338.5 kB / 444.1 MB, free: 8.434 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.219e-05/0.351, allocations: 52.38 kB / 444.1 MB, free: 8.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.3511, allocations: 107.3 kB / 444.2 MB, free: 8.371 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.3512, allocations: 67.08 kB / 444.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3513, allocations: 0 / 444.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002776/0.3515, allocations: 202.8 kB / 444.5 MB, free: 8.312 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.3516, allocations: 4.406 kB / 444.5 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3516, allocations: 192 / 444.5 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.3516, allocations: 7.875 kB / 444.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.3518, allocations: 36.88 kB / 444.5 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3518, allocations: 4.469 kB / 444.5 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.352, allocations: 36.55 kB / 444.6 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.352, allocations: 11.59 kB / 444.6 MB, free: 8.293 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 7.227e-05/0.3521, allocations: 109.4 kB / 444.7 MB, free: 8.184 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/0.3521, allocations: 19.97 kB / 444.7 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.3524, allocations: 181.7 kB / 444.9 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3525, allocations: 0 / 444.9 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3525, allocations: 0.6094 kB / 444.9 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3525, allocations: 12.56 kB / 444.9 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.3527, allocations: 240.4 kB / 445.1 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3528, allocations: 0 / 445.1 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.3529, allocations: 19.42 kB / 445.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.3529, allocations: 5.062 kB / 445.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.3529, allocations: 0 / 445.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.3529, allocations: 0.8906 kB / 445.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.3529, allocations: 3.625 kB / 445.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000252/0.3532, allocations: 205.6 kB / 445.4 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.3532, allocations: 97.23 kB / 445.5 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.3533, allocations: 4.609 kB / 445.5 MB, free: 7.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.3534, allocations: 24.95 kB / 445.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.306e-05/0.3535, allocations: 18.16 kB / 445.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.3536, allocations: 8.531 kB / 445.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.379e-05/0.3537, allocations: 131.4 kB / 445.6 MB, free: 7.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002651/0.3539, allocations: 31.73 kB / 445.7 MB, free: 7.656 MB / 314.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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001863/0.3541, allocations: 107.3 kB / 445.8 MB, free: 7.559 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002932/0.3544, allocations: 147.7 kB / 445.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3544, allocations: 0 / 445.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.3545, allocations: 72.31 kB / 446 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.3549, allocations: 28.94 kB / 446 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005447/0.3554, allocations: 250.5 kB / 446.3 MB, free: 7.426 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.3557, allocations: 0.76 MB / 447 MB, free: 6.723 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3557, allocations: 0 / 447 MB, free: 6.723 MB / 314.7 MB Notification: Performance of Templates: time 0.005781/0.3615, allocations: 2.065 MB / 449.1 MB, free: 6.512 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches