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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 109.1 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 192.3 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00208/0.00208, allocations: 293.7 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8725/0.8725, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 96.14 kB / 0.6821 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3655, allocations: 86.97 MB / 0.7671 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002293/0.3678, allocations: 1.531 MB / 0.7686 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002827/0.3681, allocations: 116.5 kB / 0.7687 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.3682, allocations: 0 / 0.7687 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.694e-05/0.3683, allocations: 3.938 kB / 0.7687 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.535e-05/0.3683, allocations: 15.86 kB / 0.7687 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001933/0.3685, allocations: 31.95 kB / 0.7687 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.489e-05/0.3686, allocations: 51.84 kB / 0.7688 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.3687, allocations: 27.98 kB / 0.7688 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.878e-05/0.3688, allocations: 23.92 kB / 0.7688 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.87e-05/0.3689, allocations: 31.84 kB / 0.7688 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.3689, allocations: 4 kB / 0.7689 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.159e-05/0.3689, allocations: 8 kB / 0.7689 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.923e-05/0.369, allocations: 23.91 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.369, allocations: 23.86 kB / 0.7689 GB, free: 2 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.3691, allocations: 59.47 kB / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3691, allocations: 0 / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3691, allocations: 4 kB / 0.769 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.3691, allocations: 0 / 0.769 GB, free: 1.941 MB / 0.5294 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.000472/0.3696, allocations: 373.9 kB / 0.7693 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3697, allocations: 12.03 kB / 0.7693 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.508e-05/0.3697, allocations: 12.78 kB / 0.7693 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.3699, allocations: 188.1 kB / 0.7695 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.3699, allocations: 12.31 kB / 0.7695 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.3699, allocations: 4.375 kB / 0.7695 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.3702, allocations: 90.19 kB / 0.7696 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.3702, allocations: 192 / 0.7696 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.3702, allocations: 3.938 kB / 0.7696 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3702, allocations: 0 / 0.7696 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003084/0.3705, allocations: 91.84 kB / 0.7697 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.371, allocations: 328.7 kB / 0.77 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.3712, allocations: 58.67 kB / 0.7701 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.3713, allocations: 40.81 kB / 0.7701 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.3714, allocations: 4 kB / 0.7701 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.3714, allocations: 30.56 kB / 0.7702 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3714, allocations: 0 / 0.7702 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005329/0.372, allocations: 137.6 kB / 0.7703 GB, free: 424 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.372, allocations: 63.33 kB / 0.7704 GB, free: 348 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.965e-05/0.3721, allocations: 113.8 kB / 0.7705 GB, free: 224 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.3721, allocations: 25.7 kB / 0.7705 GB, free: 192 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.3721, allocations: 92.05 kB / 0.7706 GB, free: 96 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.3722, allocations: 11.83 kB / 0.7706 GB, free: 84 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.3722, allocations: 17.72 kB / 0.7706 GB, free: 60 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3723, allocations: 318.8 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.3725, allocations: 35.95 kB / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.3726, allocations: 35.95 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002783/0.3729, allocations: 76.78 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3729, allocations: 0 / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000327/0.3732, allocations: 105.5 kB / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.3733, allocations: 4 kB / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-06/0.3733, allocations: 0 / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.3733, allocations: 0 / 0.7712 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3734, allocations: 19.97 kB / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3734, allocations: 4 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.037e-05/0.3735, allocations: 11.98 kB / 0.7712 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.3735, allocations: 7.938 kB / 0.7712 GB, free: 15.43 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.3736, allocations: 113.8 kB / 0.7713 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.3737, allocations: 11.92 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003568/0.374, allocations: 113.5 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.374, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3741, allocations: 4 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.3741, allocations: 81.02 kB / 0.7715 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.3741, allocations: 7.922 kB / 0.7715 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.3742, allocations: 15.92 kB / 0.7715 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.949e-05/0.3743, allocations: 0 / 0.7715 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003985/0.3747, allocations: 193.2 kB / 0.7717 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003835/0.3751, allocations: 278.7 kB / 0.772 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001532/0.3752, allocations: 43.89 kB / 0.772 GB, free: 14.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.027e-05/0.3753, allocations: 91.27 kB / 0.7721 GB, free: 14.44 MB / 0.545 GB Notification: Performance of Backend: time 1.81e-07/0.3753, allocations: 0 / 0.7721 GB, free: 14.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004606/0.3757, allocations: 120.9 kB / 0.7722 GB, free: 14.32 MB / 0.545 GB Notification: Performance of SimCode: time 0.0004098/0.3762, allocations: 0.5962 MB / 0.7728 GB, free: 13.67 MB / 0.545 GB Notification: Performance of Templates: time 0.002878/0.379, allocations: 0.9643 MB / 0.7737 GB, free: 12.72 MB / 0.545 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)