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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7366/0.7366, allocations: 141.7 MB / 154.3 MB, free: 15.47 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 182.3 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 221.3 MB / 441.4 MB, free: 4.594 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008758/0.000876, allocations: 95.42 kB / 0.5124 GB, free: 24.28 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001841/0.001841, allocations: 273.2 kB / 0.5939 GB, free: 7.934 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.104e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4357/0.4357, allocations: 82.78 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.5659, allocations: 108.8 MB / 0.8705 GB, free: 15.76 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.5662, allocations: 75.83 kB / 0.8706 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003438/0.5697, allocations: 1.121 MB / 0.8717 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.645e-06/0.5697, allocations: 3.984 kB / 0.8717 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.5697, allocations: 4 kB / 0.8717 GB, free: 14.56 MB / 0.5417 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.0003853/0.5701, allocations: 366.4 kB / 0.872 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5701, allocations: 8.031 kB / 0.872 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.5702, allocations: 4 kB / 0.872 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.5704, allocations: 194.8 kB / 0.8722 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.5704, allocations: 11.95 kB / 0.8722 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.5704, allocations: 8 kB / 0.8722 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.5706, allocations: 65.61 kB / 0.8723 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.5706, allocations: 0 / 0.8723 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.5706, allocations: 4 kB / 0.8723 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.5706, allocations: 0 / 0.8723 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.239e-05/0.5707, allocations: 28 kB / 0.8723 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.5712, allocations: 344.6 kB / 0.8727 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 8.555e-05/0.5713, allocations: 38.55 kB / 0.8727 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.682e-05/0.5714, allocations: 20.86 kB / 0.8727 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.5714, allocations: 8 kB / 0.8727 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.5714, allocations: 34.59 kB / 0.8728 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.5714, allocations: 0 / 0.8728 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0001599/0.5716, allocations: 53.78 kB / 0.8728 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.5716, allocations: 51.41 kB / 0.8729 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.569e-05/0.5717, allocations: 105 kB / 0.873 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.5717, allocations: 25.7 kB / 0.873 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.523e-05/0.5718, allocations: 100 kB / 0.8731 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.5718, allocations: 15.84 kB / 0.8731 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-06/0.5718, allocations: 0 / 0.8731 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.5719, allocations: 318.8 kB / 0.8734 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.91e-05/0.572, allocations: 12 kB / 0.8734 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.282e-05/0.572, allocations: 11.98 kB / 0.8734 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.815e-05/0.572, allocations: 8 kB / 0.8734 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.572, allocations: 3.938 kB / 0.8734 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.749e-05/0.5721, allocations: 65.53 kB / 0.8735 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.5722, allocations: 13.19 kB / 0.8735 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.5722, allocations: 4 kB / 0.8735 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.5722, allocations: 0 / 0.8735 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.5723, allocations: 23.97 kB / 0.8735 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.5723, allocations: 0 / 0.8735 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.36e-05/0.5724, allocations: 15.98 kB / 0.8736 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.5725, allocations: 0 / 0.8736 GB, free: 12.43 MB / 0.5417 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.018e-05/0.5725, allocations: 112.9 kB / 0.8737 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.5726, allocations: 3.906 kB / 0.8737 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.5727, allocations: 73.64 kB / 0.8737 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5727, allocations: 0 / 0.8737 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5727, allocations: 0 / 0.8737 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.5727, allocations: 3.984 kB / 0.8737 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.5729, allocations: 173.6 kB / 0.8739 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.5729, allocations: 3.984 kB / 0.8739 GB, free: 12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.573, allocations: 27.98 kB / 0.8739 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.573, allocations: 0 / 0.8739 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.573, allocations: 0 / 0.8739 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.5731, allocations: 0 / 0.8739 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.5731, allocations: 4 kB / 0.8739 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001385/0.5732, allocations: 151.4 kB / 0.8741 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.458e-05/0.5733, allocations: 93 kB / 0.8742 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.5733, allocations: 0 / 0.8742 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.5734, allocations: 20.27 kB / 0.8742 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.515e-05/0.5734, allocations: 0 / 0.8742 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.5735, allocations: 7.984 kB / 0.8742 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.029e-05/0.5735, allocations: 87.28 kB / 0.8743 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5735, allocations: 0 / 0.8743 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002011/0.5737, allocations: 8 kB / 0.8743 GB, free: 11.58 MB / 0.5417 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.0001537/0.5739, allocations: 111.1 kB / 0.8744 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001053/0.574, allocations: 31.97 kB / 0.8744 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.574, allocations: 4 kB / 0.8744 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.531e-05/0.5741, allocations: 15.94 kB / 0.8744 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.5742, allocations: 11.95 kB / 0.8745 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/0.5745, allocations: 97.2 kB / 0.8746 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.5748, allocations: 0.6965 MB / 0.8752 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.329e-05/0.5748, allocations: 11.98 kB / 0.8752 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.5749, allocations: 7.438 kB / 0.8753 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.5749, allocations: 0 / 0.8753 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of Templates: time 0.00258/0.5775, allocations: 0.6198 MB / 0.8759 GB, free: 9.941 MB / 0.5417 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)