Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) 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) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0/package.mo): time 0.7004/0.7004, allocations: 127.4 MB / 134.6 MB, free: 4.078 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001174/0.001174, allocations: 185.2 kB / 164.4 MB, free: 6.867 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.69/1.69, allocations: 205.1 MB / 399.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 98 kB / 476.3 MB, free: 8.883 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.013e-05/1.016e-05, allocations: 4 kB / 0.546 GB, free: 42.75 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2513, allocations: 76.74 MB / 0.6209 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5665/0.8178, allocations: 102 MB / 0.7205 GB, free: 10.43 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.8182, allocations: 71.95 kB / 0.7206 GB, free: 10.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.003426/0.8216, allocations: 0.8372 MB / 0.7214 GB, free: 9.523 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.8217, allocations: 8.656 kB / 0.7214 GB, free: 9.516 MB / 490.7 MB 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.0004742/0.8221, allocations: 372.6 kB / 0.7217 GB, free: 9.109 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.8222, allocations: 8.031 kB / 0.7218 GB, free: 9.102 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.8222, allocations: 8.781 kB / 0.7218 GB, free: 9.094 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.8225, allocations: 182.9 kB / 0.7219 GB, free: 8.875 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.8225, allocations: 4 kB / 0.7219 GB, free: 8.871 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.8225, allocations: 7.938 kB / 0.7219 GB, free: 8.863 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001139/0.8226, allocations: 35.89 kB / 0.722 GB, free: 8.828 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.8227, allocations: 57.67 kB / 0.722 GB, free: 8.766 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.8228, allocations: 3.938 kB / 0.722 GB, free: 8.762 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.8228, allocations: 0 / 0.722 GB, free: 8.762 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.8228, allocations: 0 / 0.722 GB, free: 8.762 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005613/0.8234, allocations: 321.8 kB / 0.7223 GB, free: 8.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001052/0.8235, allocations: 26.58 kB / 0.7224 GB, free: 8.375 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.155e-05/0.8236, allocations: 20.77 kB / 0.7224 GB, free: 8.352 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.8236, allocations: 8.078 kB / 0.7224 GB, free: 8.344 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.8236, allocations: 34.56 kB / 0.7224 GB, free: 8.301 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.8236, allocations: 0 / 0.7224 GB, free: 8.301 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002331/0.8239, allocations: 53.72 kB / 0.7225 GB, free: 8.242 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.8239, allocations: 63.41 kB / 0.7225 GB, free: 8.168 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.692e-05/0.824, allocations: 103 kB / 0.7226 GB, free: 8.062 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.8241, allocations: 25.7 kB / 0.7227 GB, free: 8.031 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.656e-05/0.8241, allocations: 88.05 kB / 0.7228 GB, free: 7.941 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.8241, allocations: 11.84 kB / 0.7228 GB, free: 7.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.8242, allocations: 0 / 0.7228 GB, free: 7.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.8243, allocations: 322.7 kB / 0.7231 GB, free: 7.605 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.647e-05/0.8243, allocations: 8 kB / 0.7231 GB, free: 7.598 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.51e-05/0.8244, allocations: 16 kB / 0.7231 GB, free: 7.582 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.583e-05/0.8244, allocations: 15.98 kB / 0.7231 GB, free: 7.566 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.8244, allocations: 0 / 0.7231 GB, free: 7.566 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001183/0.8246, allocations: 57.59 kB / 0.7232 GB, free: 7.504 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.8246, allocations: 8.75 kB / 0.7232 GB, free: 7.496 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.8246, allocations: 4 kB / 0.7232 GB, free: 7.492 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.8246, allocations: 4.125 kB / 0.7232 GB, free: 7.488 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.8248, allocations: 27.97 kB / 0.7232 GB, free: 7.461 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.8248, allocations: 0 / 0.7232 GB, free: 7.461 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.8249, allocations: 19.98 kB / 0.7232 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.8249, allocations: 4 kB / 0.7232 GB, free: 7.438 MB / 490.7 MB 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 7.28e-05/0.825, allocations: 101 kB / 0.7233 GB, free: 7.332 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.825, allocations: 15.83 kB / 0.7233 GB, free: 7.316 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001788/0.8252, allocations: 74.36 kB / 0.7234 GB, free: 7.238 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.8252, allocations: 3.938 kB / 0.7234 GB, free: 7.234 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.8252, allocations: 0 / 0.7234 GB, free: 7.234 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8253, allocations: 0 / 0.7234 GB, free: 7.234 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.8254, allocations: 158.1 kB / 0.7236 GB, free: 7.043 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8254, allocations: 0 / 0.7236 GB, free: 7.043 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.8256, allocations: 31.91 kB / 0.7236 GB, free: 7.012 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.8256, allocations: 0 / 0.7236 GB, free: 7.012 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.8256, allocations: 0 / 0.7236 GB, free: 7.012 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.8256, allocations: 0 / 0.7236 GB, free: 7.012 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.8256, allocations: 0 / 0.7236 GB, free: 7.012 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001814/0.8258, allocations: 155.5 kB / 0.7237 GB, free: 6.844 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.8259, allocations: 89 kB / 0.7238 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.8259, allocations: 0 / 0.7238 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.826, allocations: 19.98 kB / 0.7238 GB, free: 6.719 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.8261, allocations: 11.98 kB / 0.7239 GB, free: 6.707 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.8261, allocations: 0 / 0.7239 GB, free: 6.707 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.017e-05/0.8261, allocations: 87.28 kB / 0.7239 GB, free: 6.621 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.8263, allocations: 11.91 kB / 0.724 GB, free: 6.609 MB / 490.7 MB 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.0001741/0.8265, allocations: 103.2 kB / 0.7241 GB, free: 6.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.8266, allocations: 35.92 kB / 0.7241 GB, free: 6.465 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.8267, allocations: 0 / 0.7241 GB, free: 6.465 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.635e-05/0.8267, allocations: 20 kB / 0.7241 GB, free: 6.445 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001793/0.8269, allocations: 3.984 kB / 0.7241 GB, free: 6.441 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002966/0.8272, allocations: 91.81 kB / 0.7242 GB, free: 6.324 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.8275, allocations: 0.7032 MB / 0.7249 GB, free: 5.598 MB / 490.7 MB Notification: Performance of SimCode: time 3.106e-06/0.8275, allocations: 0 / 0.7249 GB, free: 5.598 MB / 490.7 MB Notification: Performance of Templates: time 0.00278/0.8303, allocations: 0.7199 MB / 0.7256 GB, free: 4.887 MB / 490.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)