Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002603/0.002602, allocations: 175.3 kB / 8.15 MB, free: 2.191 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.678/1.678, 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.001257/0.001257, allocations: 81.92 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.351e-05/1.383e-05, allocations: 4 kB / 314.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2333, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.3476, allocations: 76.07 MB / 437.9 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.3478, allocations: 70.03 kB / 438 MB, free: 9.938 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01235/0.3602, allocations: 2.374 MB / 440.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.363e-05/0.3603, allocations: 7.984 kB / 440.3 MB, free: 7.594 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009919/0.3613, allocations: 483.2 kB / 440.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3614, allocations: 8.031 kB / 440.8 MB, free: 7.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.478e-05/0.3614, allocations: 23.72 kB / 440.8 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003717/0.3618, allocations: 233 kB / 441.1 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.3619, allocations: 4 kB / 441.1 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.3619, allocations: 15.98 kB / 441.1 MB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000398/0.3623, allocations: 104.5 kB / 441.2 MB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.3627, allocations: 170.7 kB / 441.4 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3627, allocations: 0 / 441.4 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.3628, allocations: 4 kB / 441.4 MB, free: 6.465 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/0.3628, allocations: 7.906 kB / 441.4 MB, free: 6.457 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.3644, allocations: 0.755 MB / 442.1 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.3648, allocations: 133.2 kB / 442.3 MB, free: 5.504 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.3649, allocations: 57.83 kB / 442.3 MB, free: 5.441 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-05/0.365, allocations: 5.125 kB / 442.3 MB, free: 5.438 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.3653, allocations: 129.4 kB / 442.4 MB, free: 5.297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.785e-06/0.3653, allocations: 0 / 442.4 MB, free: 5.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005255/0.3658, allocations: 158.5 kB / 442.6 MB, free: 5.137 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/0.3659, allocations: 85.02 kB / 442.7 MB, free: 5.035 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.3662, allocations: 171 kB / 442.9 MB, free: 4.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.3662, allocations: 25.7 kB / 442.9 MB, free: 4.828 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.3663, allocations: 182.6 kB / 443.1 MB, free: 4.648 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.559e-05/0.3664, allocations: 39.45 kB / 443.1 MB, free: 4.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.457e-05/0.3664, allocations: 0 / 443.1 MB, free: 4.609 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3666, allocations: 322.8 kB / 443.4 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3668, allocations: 58.42 kB / 443.5 MB, free: 4.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.367, allocations: 103.9 kB / 443.6 MB, free: 4.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.3672, allocations: 73.38 kB / 443.6 MB, free: 4.035 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3672, allocations: 0 / 443.6 MB, free: 4.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005292/0.3678, allocations: 191.7 kB / 443.8 MB, free: 3.844 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3678, allocations: 4 kB / 443.8 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3678, allocations: 4 kB / 443.8 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.3679, allocations: 8.094 kB / 443.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.3682, allocations: 35.92 kB / 443.9 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3683, allocations: 4 kB / 443.9 MB, free: 3.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.3685, allocations: 36.47 kB / 443.9 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.3686, allocations: 8 kB / 443.9 MB, free: 3.746 MB / 330.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 0.0001103/0.3687, allocations: 43.48 kB / 444 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.163e-05/0.3688, allocations: 15.81 kB / 444 MB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006233/0.3695, allocations: 182.8 kB / 444.2 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3695, allocations: 0 / 444.2 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3695, allocations: 0 / 444.2 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.3695, allocations: 7.906 kB / 444.2 MB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.3699, allocations: 234 kB / 444.4 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3699, allocations: 3.938 kB / 444.4 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.3702, allocations: 28.78 kB / 444.4 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/0.3702, allocations: 3.906 kB / 444.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.3703, allocations: 4 kB / 444.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3703, allocations: 3.938 kB / 444.4 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3703, allocations: 0 / 444.4 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004851/0.3708, allocations: 207.3 kB / 444.6 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-05/0.3709, allocations: 96.84 kB / 444.7 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.371, allocations: 4 kB / 444.7 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.3713, allocations: 23.98 kB / 444.8 MB, free: 2.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.3714, allocations: 11.97 kB / 444.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.3714, allocations: 8 kB / 444.8 MB, free: 2.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001754/0.3716, allocations: 132.2 kB / 444.9 MB, free: 2.672 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003539/0.3719, allocations: 31.91 kB / 444.9 MB, free: 2.641 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: 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.0001941/0.3722, allocations: 99.19 kB / 445 MB, free: 2.535 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004376/0.3726, allocations: 151.8 kB / 445.2 MB, free: 2.387 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3726, allocations: 0 / 445.2 MB, free: 2.387 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.3728, allocations: 67.92 kB / 445.3 MB, free: 2.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.3733, allocations: 36.62 kB / 445.3 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009205/0.3742, allocations: 283.2 kB / 445.6 MB, free: 1.973 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000472/0.3747, allocations: 0.7626 MB / 446.3 MB, free: 1.184 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3748, allocations: 0.5625 kB / 446.3 MB, free: 1.184 MB / 330.7 MB Notification: Performance of Templates: time 0.006374/0.3811, allocations: 2.351 MB / 448.7 MB, free: 14.88 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches