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.001311/0.001311, allocations: 106.2 kB / 16.41 MB, free: 6.438 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.001327/0.001327, allocations: 191.2 kB / 17.34 MB, free: 5.742 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 303.9 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9029/0.9029, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 91.84 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.4014, allocations: 86.99 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002567/0.404, allocations: 1.523 MB / 0.7685 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003444/0.4044, allocations: 112.5 kB / 0.7687 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.632e-05/0.4045, allocations: 4 kB / 0.7687 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.4046, allocations: 3.938 kB / 0.7687 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.745e-05/0.4047, allocations: 11.88 kB / 0.7687 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.4049, allocations: 31.95 kB / 0.7687 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.98e-05/0.405, allocations: 59.83 kB / 0.7688 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.4051, allocations: 19.98 kB / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.529e-05/0.4052, allocations: 27.92 kB / 0.7688 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.883e-05/0.4053, allocations: 35.84 kB / 0.7688 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.4053, allocations: 4 kB / 0.7688 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.945e-05/0.4054, allocations: 8 kB / 0.7689 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.978e-05/0.4054, allocations: 23.91 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.4054, allocations: 19.88 kB / 0.7689 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.4056, allocations: 59.45 kB / 0.769 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4056, allocations: 4 kB / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4056, allocations: 0 / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.4056, allocations: 0 / 0.769 GB, free: 1.945 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.0005266/0.4061, allocations: 385.8 kB / 0.7693 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.4062, allocations: 11.97 kB / 0.7693 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.875e-05/0.4062, allocations: 8.844 kB / 0.7693 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.4064, allocations: 184.2 kB / 0.7695 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-06/0.4064, allocations: 4.375 kB / 0.7695 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.4064, allocations: 8.312 kB / 0.7695 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.4067, allocations: 86.2 kB / 0.7696 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.4067, allocations: 4.188 kB / 0.7696 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.4068, allocations: 3.938 kB / 0.7696 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.4068, allocations: 4 kB / 0.7696 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.4071, allocations: 83.84 kB / 0.7697 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.4076, allocations: 324.7 kB / 0.77 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.4078, allocations: 62.56 kB / 0.7701 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.408, allocations: 40.91 kB / 0.7701 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.408, allocations: 0 / 0.7701 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.408, allocations: 38.56 kB / 0.7702 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.4081, allocations: 0 / 0.7702 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005398/0.4086, allocations: 137.5 kB / 0.7703 GB, free: 428 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.4086, allocations: 51.41 kB / 0.7703 GB, free: 364 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/0.4087, allocations: 125.8 kB / 0.7705 GB, free: 228 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.4088, allocations: 29.7 kB / 0.7705 GB, free: 192 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.4088, allocations: 88.05 kB / 0.7706 GB, free: 100 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.4088, allocations: 11.84 kB / 0.7706 GB, free: 88 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.4089, allocations: 17.7 kB / 0.7706 GB, free: 64 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.409, allocations: 318.8 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.4092, allocations: 35.95 kB / 0.7709 GB, free: 15.71 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.4093, allocations: 36.16 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.4096, allocations: 76.86 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4096, allocations: 0 / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003168/0.4099, allocations: 109.5 kB / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.4099, allocations: 8 kB / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4099, allocations: 0 / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.41, allocations: 0 / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.4101, allocations: 11.98 kB / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.4101, allocations: 7.984 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.457e-05/0.4102, allocations: 11.98 kB / 0.7712 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.4102, allocations: 11.94 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 7.805e-05/0.4103, allocations: 117.7 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.4103, allocations: 0 / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003756/0.4107, allocations: 117.5 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4107, allocations: 3.938 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4107, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4107, allocations: 4 kB / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.4109, allocations: 181.5 kB / 0.7716 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4109, allocations: 4 kB / 0.7716 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.051e-05/0.411, allocations: 11.98 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.411, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.4111, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4111, allocations: 4 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4111, allocations: 3.984 kB / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003552/0.4114, allocations: 199.4 kB / 0.7718 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.4115, allocations: 85 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.4115, allocations: 0 / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.4116, allocations: 11.98 kB / 0.7719 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.4116, allocations: 8 kB / 0.7719 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.4117, allocations: 8 kB / 0.7719 GB, free: 14.58 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.119e-05/0.4117, allocations: 95.2 kB / 0.772 GB, free: 14.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4117, allocations: 0 / 0.772 GB, free: 14.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002208/0.412, allocations: 8 kB / 0.772 GB, free: 14.48 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.0001247/0.4121, allocations: 107.2 kB / 0.7721 GB, free: 14.37 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003393/0.4124, allocations: 79.92 kB / 0.7722 GB, free: 14.29 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4124, allocations: 0 / 0.7722 GB, free: 14.29 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.4126, allocations: 39.95 kB / 0.7722 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.4129, allocations: 4 kB / 0.7722 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.4132, allocations: 186.9 kB / 0.7724 GB, free: 14.03 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.4135, allocations: 0.6924 MB / 0.7731 GB, free: 13.31 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.4135, allocations: 11.44 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.784e-06/0.4135, allocations: 0 / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of Templates: time 0.002261/0.4158, allocations: 0.951 MB / 0.774 GB, free: 12.36 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)