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.001136/0.001136, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001148/0.001148, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.262/1.262, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002073/0.002073, allocations: 290.1 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9238/0.9238, allocations: 169.3 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 99.84 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4055, allocations: 86.97 MB / 0.7671 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002426/0.4079, allocations: 1.535 MB / 0.7685 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003049/0.4082, allocations: 112.6 kB / 0.7687 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.438e-05/0.4083, allocations: 3.938 kB / 0.7687 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.4084, allocations: 7.938 kB / 0.7687 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.908e-05/0.4085, allocations: 15.92 kB / 0.7687 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.4087, allocations: 31.91 kB / 0.7687 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.708e-05/0.4088, allocations: 51.83 kB / 0.7688 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.4089, allocations: 23.98 kB / 0.7688 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.261e-05/0.409, allocations: 23.92 kB / 0.7688 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.266e-05/0.409, allocations: 35.84 kB / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.4091, allocations: 4 kB / 0.7688 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.694e-05/0.4091, allocations: 8 kB / 0.7689 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.335e-05/0.4092, allocations: 19.92 kB / 0.7689 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.4092, allocations: 31.84 kB / 0.7689 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001276/0.4094, allocations: 59.47 kB / 0.769 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4094, allocations: 0 / 0.769 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.293e-06/0.4094, allocations: 0 / 0.769 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.4094, allocations: 0 / 0.769 GB, free: 1.988 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.0004999/0.4099, allocations: 377.9 kB / 0.7693 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.4099, allocations: 12.03 kB / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.41, allocations: 4.844 kB / 0.7693 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.4101, allocations: 188.2 kB / 0.7695 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.4101, allocations: 4.375 kB / 0.7695 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.4102, allocations: 4.312 kB / 0.7695 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.4104, allocations: 94.12 kB / 0.7696 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.4105, allocations: 4.188 kB / 0.7696 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.4105, allocations: 3.938 kB / 0.7696 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.4105, allocations: 4 kB / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.4108, allocations: 75.92 kB / 0.7697 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.4113, allocations: 336.6 kB / 0.77 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.4115, allocations: 54.55 kB / 0.7701 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.4117, allocations: 44.94 kB / 0.7701 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.4117, allocations: 0 / 0.7701 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.4117, allocations: 38.56 kB / 0.7702 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.4117, allocations: 0 / 0.7702 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005309/0.4123, allocations: 129.6 kB / 0.7703 GB, free: 484 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.4123, allocations: 59.39 kB / 0.7703 GB, free: 412 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.731e-05/0.4124, allocations: 121.8 kB / 0.7704 GB, free: 280 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.4124, allocations: 25.7 kB / 0.7705 GB, free: 248 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.148e-05/0.4125, allocations: 92.05 kB / 0.7706 GB, free: 152 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.4125, allocations: 15.83 kB / 0.7706 GB, free: 136 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.793e-05/0.4126, allocations: 13.72 kB / 0.7706 GB, free: 116 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4127, allocations: 318.8 kB / 0.7709 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.4129, allocations: 39.89 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.4131, allocations: 40.14 kB / 0.771 GB, free: 15.71 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.4134, allocations: 72.86 kB / 0.771 GB, free: 15.64 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4134, allocations: 0 / 0.771 GB, free: 15.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003237/0.4137, allocations: 105.5 kB / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.4137, allocations: 4 kB / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.4137, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.4137, allocations: 0 / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.4139, allocations: 23.97 kB / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.4139, allocations: 0 / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.758e-05/0.414, allocations: 15.92 kB / 0.7712 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.414, allocations: 0 / 0.7712 GB, free: 15.49 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 9.522e-05/0.4141, allocations: 125.7 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.4141, allocations: 7.984 kB / 0.7713 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.4145, allocations: 105.5 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4145, allocations: 4 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4145, allocations: 0 / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4145, allocations: 4 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.4147, allocations: 185.5 kB / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4147, allocations: 0 / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.462e-05/0.4148, allocations: 19.97 kB / 0.7716 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.4148, allocations: 3.938 kB / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.4149, allocations: 0 / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4149, allocations: 0 / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4149, allocations: 3.938 kB / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.4152, allocations: 203.4 kB / 0.7718 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.4153, allocations: 85.02 kB / 0.7719 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.4153, allocations: 0 / 0.7719 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.4154, allocations: 15.98 kB / 0.7719 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.4155, allocations: 3.984 kB / 0.7719 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.4155, allocations: 0 / 0.7719 GB, free: 14.63 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.684e-05/0.4155, allocations: 95.28 kB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4155, allocations: 0 / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002223/0.4158, allocations: 11.98 kB / 0.772 GB, free: 14.53 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001365/0.4159, allocations: 103.2 kB / 0.7721 GB, free: 14.42 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003368/0.4162, allocations: 75.86 kB / 0.7722 GB, free: 14.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4163, allocations: 4 kB / 0.7722 GB, free: 14.34 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.4164, allocations: 39.95 kB / 0.7722 GB, free: 14.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.4167, allocations: 8 kB / 0.7722 GB, free: 14.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003601/0.4171, allocations: 187 kB / 0.7724 GB, free: 14.08 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4173, allocations: 0.6885 MB / 0.7731 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.4174, allocations: 15.44 kB / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of SimCode: time 1.673e-06/0.4174, allocations: 0 / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of Templates: time 0.002226/0.4196, allocations: 0.952 MB / 0.774 GB, free: 12.41 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)