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.8082/0.8082, allocations: 141.8 MB / 149.3 MB, free: 9.203 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 184.6 kB / 182.2 MB, free: 9.453 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.358/1.358, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0009031/0.0009031, allocations: 88.11 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002015/0.002015, allocations: 292.3 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.163e-05/2.178e-05, allocations: 4 kB / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3849, allocations: 82.77 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.5167, allocations: 108.1 MB / 0.863 GB, free: 3.754 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.5169, allocations: 79.83 kB / 0.863 GB, free: 3.68 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003527/0.5204, allocations: 1.119 MB / 0.8641 GB, free: 2.551 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.263e-06/0.5205, allocations: 0 / 0.8641 GB, free: 2.551 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.5205, allocations: 0 / 0.8641 GB, free: 2.551 MB / 0.5261 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.0004615/0.5209, allocations: 374.3 kB / 0.8645 GB, free: 2.141 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.521, allocations: 12.03 kB / 0.8645 GB, free: 2.129 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/0.5211, allocations: 4 kB / 0.8645 GB, free: 2.125 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.5213, allocations: 186.9 kB / 0.8647 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.5213, allocations: 7.953 kB / 0.8647 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.5213, allocations: 0 / 0.8647 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001019/0.5214, allocations: 28 kB / 0.8647 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.5215, allocations: 61.61 kB / 0.8648 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.5215, allocations: 0 / 0.8648 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.5215, allocations: 0 / 0.8648 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.5216, allocations: 3.938 kB / 0.8648 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.5221, allocations: 309.3 kB / 0.8651 GB, free: 1.457 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 8.053e-05/0.5222, allocations: 42.61 kB / 0.8651 GB, free: 1.406 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.711e-05/0.5223, allocations: 20.94 kB / 0.8651 GB, free: 1.383 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.5223, allocations: 3.938 kB / 0.8651 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.5223, allocations: 34.56 kB / 0.8652 GB, free: 1.336 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 2.375e-06/0.5223, allocations: 3.984 kB / 0.8652 GB, free: 1.332 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002212/0.5226, allocations: 53.69 kB / 0.8652 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.5226, allocations: 51.41 kB / 0.8653 GB, free: 1.211 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.01e-05/0.5227, allocations: 112.9 kB / 0.8654 GB, free: 1.094 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.5227, allocations: 25.7 kB / 0.8654 GB, free: 1.062 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.359e-05/0.5228, allocations: 96.05 kB / 0.8655 GB, free: 0.9648 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.5228, allocations: 7.844 kB / 0.8655 GB, free: 0.957 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-06/0.5228, allocations: 0 / 0.8655 GB, free: 0.957 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.5229, allocations: 318.8 kB / 0.8658 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.772e-05/0.5229, allocations: 12 kB / 0.8658 GB, free: 0.625 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.364e-05/0.523, allocations: 8 kB / 0.8658 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.901e-05/0.523, allocations: 19.92 kB / 0.8658 GB, free: 0.5977 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.523, allocations: 4 kB / 0.8658 GB, free: 0.5938 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00012/0.5232, allocations: 61.59 kB / 0.8659 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.5232, allocations: 4 kB / 0.8659 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.5232, allocations: 0 / 0.8659 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.5232, allocations: 0 / 0.8659 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.5234, allocations: 23.97 kB / 0.8659 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.5234, allocations: 0 / 0.8659 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.815e-05/0.5235, allocations: 19.98 kB / 0.866 GB, free: 492 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.5235, allocations: 4 kB / 0.866 GB, free: 488 kB / 0.5261 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.614e-05/0.5236, allocations: 104.9 kB / 0.8661 GB, free: 376 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.5236, allocations: 3.906 kB / 0.8661 GB, free: 372 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001646/0.5238, allocations: 77.94 kB / 0.8661 GB, free: 284 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.5238, allocations: 4 kB / 0.8661 GB, free: 280 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5238, allocations: 0 / 0.8661 GB, free: 280 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.5238, allocations: 7.938 kB / 0.8661 GB, free: 272 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.524, allocations: 154.2 kB / 0.8663 GB, free: 80 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.524, allocations: 3.953 kB / 0.8663 GB, free: 76 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.5241, allocations: 23.97 kB / 0.8663 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.5241, allocations: 0 / 0.8663 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.5241, allocations: 0 / 0.8663 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5241, allocations: 3.672 kB / 0.8663 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5242, allocations: 0 / 0.8663 GB, free: 52 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001774/0.5243, allocations: 151.5 kB / 0.8665 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-05/0.5244, allocations: 92.95 kB / 0.8666 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.5244, allocations: 0 / 0.8666 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.5246, allocations: 23.92 kB / 0.8666 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.5246, allocations: 3.984 kB / 0.8666 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.5246, allocations: 0 / 0.8666 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.367e-05/0.5247, allocations: 95.22 kB / 0.8667 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5247, allocations: 0 / 0.8667 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002417/0.5249, allocations: 12 kB / 0.8667 GB, free: 15.64 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.0001388/0.5251, allocations: 99.19 kB / 0.8668 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.916e-05/0.5252, allocations: 27.98 kB / 0.8668 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5252, allocations: 0 / 0.8668 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.478e-05/0.5252, allocations: 16 kB / 0.8668 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.5254, allocations: 13.23 kB / 0.8668 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002738/0.5257, allocations: 100.3 kB / 0.8669 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.5259, allocations: 0.6885 MB / 0.8676 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.907e-05/0.526, allocations: 11.98 kB / 0.8676 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.526, allocations: 11.44 kB / 0.8676 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of SimCode: time 2.61e-07/0.526, allocations: 0 / 0.8676 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of Templates: time 0.002629/0.5287, allocations: 0.5533 MB / 0.8682 GB, free: 14.09 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)