Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7623/0.7623, allocations: 141.8 MB / 149.1 MB, free: 15.34 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 170.6 kB / 182 MB, free: 11.73 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 221.3 MB / 436 MB, free: 4.297 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009726/0.0009725, allocations: 97.44 kB / 0.507 GB, free: 18.76 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001835/0.001835, allocations: 269.8 kB / 0.5885 GB, free: 5.645 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.598e-06/9.718e-06, allocations: 2.812 kB / 0.6759 GB, free: 138.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.148, allocations: 82.78 MB / 0.7567 GB, free: 86.7 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.2659, allocations: 108 MB / 0.8623 GB, free: 10.5 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.2662, allocations: 75.95 kB / 0.8623 GB, free: 10.43 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.003301/0.2695, allocations: 0.8326 MB / 0.8631 GB, free: 9.59 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.2695, allocations: 4 kB / 0.8631 GB, free: 9.586 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004388/0.27, allocations: 374.3 kB / 0.8635 GB, free: 9.176 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.27, allocations: 12.03 kB / 0.8635 GB, free: 9.16 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.698e-05/0.2701, allocations: 7.906 kB / 0.8635 GB, free: 9.152 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.2703, allocations: 194.8 kB / 0.8637 GB, free: 8.922 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.2703, allocations: 3.906 kB / 0.8637 GB, free: 8.918 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.2704, allocations: 4 kB / 0.8637 GB, free: 8.914 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001171/0.2705, allocations: 28 kB / 0.8637 GB, free: 8.887 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.2706, allocations: 65.61 kB / 0.8638 GB, free: 8.816 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-06/0.2706, allocations: 3.938 kB / 0.8638 GB, free: 8.812 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.2706, allocations: 0 / 0.8638 GB, free: 8.812 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.2707, allocations: 4 kB / 0.8638 GB, free: 8.809 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.2712, allocations: 313.2 kB / 0.8641 GB, free: 8.465 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.054e-05/0.2713, allocations: 34.58 kB / 0.8641 GB, free: 8.422 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.324e-05/0.2713, allocations: 24.97 kB / 0.8642 GB, free: 8.395 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.2714, allocations: 0 / 0.8642 GB, free: 8.395 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2714, allocations: 30.56 kB / 0.8642 GB, free: 8.355 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2714, allocations: 0 / 0.8642 GB, free: 8.355 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.0002232/0.2717, allocations: 61.72 kB / 0.8643 GB, free: 8.289 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.2717, allocations: 55.31 kB / 0.8643 GB, free: 8.223 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.2718, allocations: 113 kB / 0.8644 GB, free: 8.105 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.2718, allocations: 25.7 kB / 0.8644 GB, free: 8.074 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.678e-05/0.2719, allocations: 80.14 kB / 0.8645 GB, free: 7.992 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.518e-05/0.2719, allocations: 23.73 kB / 0.8645 GB, free: 7.969 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-06/0.2719, allocations: 0 / 0.8645 GB, free: 7.969 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.272, allocations: 314.8 kB / 0.8648 GB, free: 7.652 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.754e-05/0.2721, allocations: 12 kB / 0.8648 GB, free: 7.641 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.319e-05/0.2721, allocations: 8 kB / 0.8649 GB, free: 7.633 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.407e-05/0.2722, allocations: 15.98 kB / 0.8649 GB, free: 7.617 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2722, allocations: 7.938 kB / 0.8649 GB, free: 7.609 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001195/0.2723, allocations: 61.59 kB / 0.8649 GB, free: 7.543 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.2723, allocations: 4.938 kB / 0.8649 GB, free: 7.539 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2723, allocations: 3.984 kB / 0.8649 GB, free: 7.535 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2723, allocations: 0 / 0.8649 GB, free: 7.535 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.2725, allocations: 23.98 kB / 0.865 GB, free: 7.512 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2725, allocations: 4 kB / 0.865 GB, free: 7.508 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.2726, allocations: 15.98 kB / 0.865 GB, free: 7.492 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.2726, allocations: 0 / 0.865 GB, free: 7.492 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.426e-05/0.2727, allocations: 105 kB / 0.8651 GB, free: 7.383 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.2728, allocations: 7.906 kB / 0.8651 GB, free: 7.375 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.2729, allocations: 81.53 kB / 0.8652 GB, free: 7.289 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2729, allocations: 0 / 0.8652 GB, free: 7.289 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2729, allocations: 0 / 0.8652 GB, free: 7.289 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.273, allocations: 3.906 kB / 0.8652 GB, free: 7.285 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.2731, allocations: 158.2 kB / 0.8653 GB, free: 7.094 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2732, allocations: 0 / 0.8653 GB, free: 7.094 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.2733, allocations: 23.98 kB / 0.8654 GB, free: 7.07 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2733, allocations: 0 / 0.8654 GB, free: 7.07 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.2733, allocations: 4 kB / 0.8654 GB, free: 7.066 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2733, allocations: 0 / 0.8654 GB, free: 7.066 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2733, allocations: 0 / 0.8654 GB, free: 7.066 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002253/0.2735, allocations: 159.4 kB / 0.8655 GB, free: 6.895 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.657e-05/0.2736, allocations: 81.02 kB / 0.8656 GB, free: 6.797 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.2736, allocations: 0 / 0.8656 GB, free: 6.797 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2738, allocations: 15.98 kB / 0.8656 GB, free: 6.781 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.2738, allocations: 7.984 kB / 0.8656 GB, free: 6.773 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.2738, allocations: 7.938 kB / 0.8656 GB, free: 6.766 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.548e-05/0.2739, allocations: 91.28 kB / 0.8657 GB, free: 6.676 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002224/0.2741, allocations: 11.91 kB / 0.8657 GB, free: 6.664 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001576/0.2743, allocations: 103.2 kB / 0.8658 GB, free: 6.551 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001078/0.2744, allocations: 24 kB / 0.8658 GB, free: 6.527 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2744, allocations: 0 / 0.8658 GB, free: 6.527 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.656e-05/0.2744, allocations: 16 kB / 0.8658 GB, free: 6.512 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.2746, allocations: 15.92 kB / 0.8659 GB, free: 6.496 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002917/0.2749, allocations: 95.69 kB / 0.866 GB, free: 6.375 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/0.2753, allocations: 0.7032 MB / 0.8666 GB, free: 5.648 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.2753, allocations: 3.938 kB / 0.8666 GB, free: 5.645 MB / 0.5419 GB Notification: Performance of Templates: time 0.002697/0.278, allocations: 0.7142 MB / 0.8673 GB, free: 4.941 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)