Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") [: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 trunk/package.mo): time 0.001709/0.00171, allocations: 204.8 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009656/0.0009657, allocations: 93.81 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.355e-06/8.376e-06, allocations: 4 kB / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 51.48 MB / 394.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2606/0.3636, allocations: 76.98 MB / 471.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.3638, allocations: 72.53 kB / 471.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003986/0.3678, allocations: 1.295 MB / 472.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.3679, allocations: 0 / 472.9 MB, free: 13.62 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003071/0.3682, allocations: 373.4 kB / 473.3 MB, free: 13.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3682, allocations: 8.031 kB / 473.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.3684, allocations: 19.19 kB / 473.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.464e-05/0.3685, allocations: 177.3 kB / 473.5 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.3685, allocations: 4 kB / 473.5 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.3685, allocations: 4 kB / 473.5 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.364e-05/0.3686, allocations: 33.55 kB / 473.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.3687, allocations: 87.84 kB / 473.6 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.3687, allocations: 4 kB / 473.6 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.3688, allocations: 0 / 473.6 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.3688, allocations: 0 / 473.6 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.3693, allocations: 0.6165 MB / 474.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.714e-05/0.3694, allocations: 103 kB / 474.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.397e-05/0.3694, allocations: 35.67 kB / 474.4 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3694, allocations: 7.812 kB / 474.4 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.3695, allocations: 38.5 kB / 474.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.103e-06/0.3695, allocations: 0 / 474.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000252/0.3697, allocations: 68.77 kB / 474.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.3698, allocations: 161.5 kB / 474.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.944e-05/0.3698, allocations: 107.8 kB / 474.8 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.438e-06/0.3698, allocations: 25.7 kB / 474.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.909e-05/0.3699, allocations: 98.92 kB / 474.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.3699, allocations: 7.812 kB / 474.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.3699, allocations: 0 / 474.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.202e-05/0.37, allocations: 321.7 kB / 475.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.183e-05/0.37, allocations: 11.38 kB / 475.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.105e-05/0.37, allocations: 43.23 kB / 475.3 MB, free: 11.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.787e-05/0.3701, allocations: 7.812 kB / 475.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3701, allocations: 4 kB / 475.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.902e-05/0.3702, allocations: 67.03 kB / 475.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.3702, allocations: 8 kB / 475.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.3702, allocations: 0 / 475.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/0.3702, allocations: 0 / 475.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.692e-05/0.3703, allocations: 22.83 kB / 475.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3703, allocations: 6.656 kB / 475.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.137e-05/0.3704, allocations: 19.14 kB / 475.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.3704, allocations: 1.594 kB / 475.4 MB, free: 11.05 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 5.061e-05/0.3705, allocations: 108.9 kB / 475.5 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3706, allocations: 7.422 kB / 475.5 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.131e-05/0.3706, allocations: 11.16 kB / 475.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.3706, allocations: 4 kB / 475.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.3706, allocations: 0 / 475.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3706, allocations: 4 kB / 475.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.3709, allocations: 159.2 kB / 475.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3709, allocations: 0 / 475.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.165e-05/0.371, allocations: 15.47 kB / 475.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.371, allocations: 3.984 kB / 475.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.371, allocations: 7.938 kB / 475.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.3711, allocations: 7.188 kB / 475.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3711, allocations: 4 kB / 475.7 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001855/0.3713, allocations: 0.4926 MB / 476.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.569e-05/0.3713, allocations: 92.95 kB / 476.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.3713, allocations: 3.469 kB / 476.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.3716, allocations: 9.781 kB / 476.3 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.3716, allocations: 18.48 kB / 476.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.3716, allocations: 4 kB / 476.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.014e-05/0.3717, allocations: 89.84 kB / 476.4 MB, free: 9.992 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003724/0.372, allocations: 12 kB / 476.4 MB, free: 9.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001187/0.3722, allocations: 91.25 kB / 476.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.738e-05/0.3723, allocations: 34.31 kB / 476.6 MB, free: 9.859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3723, allocations: 0 / 476.6 MB, free: 9.859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.061e-05/0.3723, allocations: 22.88 kB / 476.6 MB, free: 9.844 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.3726, allocations: 4.625 kB / 476.6 MB, free: 9.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003117/0.3729, allocations: 122.4 kB / 476.7 MB, free: 9.699 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.3731, allocations: 0.7055 MB / 477.4 MB, free: 8.977 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3731, allocations: 0 / 477.4 MB, free: 8.977 MB / 346.7 MB Notification: Performance of Templates: time 0.002324/0.3755, allocations: 0.5648 MB / 478 MB, free: 8.676 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches