Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.Average.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.903/4.903, allocations: 0.5623 GB / 0.577 GB, free: 3.371 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002421/0.002421, allocations: 359.5 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.57/4.57, allocations: 410.7 MB / 1.112 GB, free: 5.984 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001844/0.001843, allocations: 187.4 kB / 1.225 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004894/0.0004896, allocations: 12 kB / 1.348 GB, free: 8.172 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6101/0.6106, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001462/0.6121, allocations: 1.239 MB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0002615/0.6124, allocations: 104.5 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.396e-05/0.6125, allocations: 0 / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 9.079e-05/0.6126, allocations: 8.641 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 2.693e-05/0.6126, allocations: 5 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001717/0.6128, allocations: 27.91 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.535e-05/0.6129, allocations: 51.83 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.492e-05/0.613, allocations: 18.11 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 4.466e-05/0.6131, allocations: 20.52 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.818e-05/0.6131, allocations: 23.86 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.6132, allocations: 4.594 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 4.956e-05/0.6132, allocations: 11.92 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.69e-05/0.6133, allocations: 9.688 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.707e-05/0.6133, allocations: 37.64 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 8.604e-05/0.6134, allocations: 39.91 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.761e-06/0.6134, allocations: 0 / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.884e-06/0.6134, allocations: 1.312 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.556e-06/0.6134, allocations: 0 / 1.462 GB, free: 282.7 MB / 0.8542 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.0004433/0.6139, allocations: 391.7 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.6139, allocations: 11.62 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.614, allocations: 5.562 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.6141, allocations: 186.9 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.6141, allocations: 0 / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.6142, allocations: 4 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.6145, allocations: 101.9 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.6145, allocations: 0 / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.6145, allocations: 4.797 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.63e-06/0.6145, allocations: 0 / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.6149, allocations: 107.8 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005307/0.6154, allocations: 340.7 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.6157, allocations: 69.19 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.6159, allocations: 55.38 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.6159, allocations: 0.6562 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.616, allocations: 35.06 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 2.189e-06/0.616, allocations: 1.625 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.000629/0.6166, allocations: 174.5 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.117e-05/0.6167, allocations: 52.03 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.521e-05/0.6167, allocations: 116.4 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.6168, allocations: 25.7 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.6168, allocations: 96.78 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.6169, allocations: 12.44 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-06/0.6169, allocations: 4 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.273e-05/0.6169, allocations: 319.9 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.6171, allocations: 41.94 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.6173, allocations: 46.89 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.6175, allocations: 49.61 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.196e-06/0.6175, allocations: 0.6562 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004032/0.6179, allocations: 133.3 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.6179, allocations: 5.844 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.077e-06/0.618, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.618, allocations: 3.953 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.6181, allocations: 26.28 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.709e-06/0.6182, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.591e-05/0.6183, allocations: 15.98 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.6183, allocations: 5 kB / 1.465 GB, free: 280.2 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.296e-05/0.6184, allocations: 118.8 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.6184, allocations: 0 / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004353/0.6189, allocations: 145.7 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.926e-06/0.6189, allocations: 3.953 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.473e-06/0.6189, allocations: 0.5 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.511e-06/0.6189, allocations: 0.7812 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.6191, allocations: 181.6 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.6191, allocations: 2.062 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.6193, allocations: 19.98 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.139e-06/0.6193, allocations: 0 / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.6193, allocations: 9.938 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.853e-06/0.6193, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.731e-06/0.6193, allocations: 4.672 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004138/0.6198, allocations: 216.7 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.665e-05/0.6198, allocations: 85 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.6198, allocations: 3.938 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.62, allocations: 17.58 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.922e-05/0.62, allocations: 9.359 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.6201, allocations: 3.953 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.179e-05/0.6201, allocations: 87.28 kB / 1.465 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.9e-07/0.6201, allocations: 5.375 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000316/0.6204, allocations: 12 kB / 1.466 GB, free: 279.2 MB / 0.8542 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 (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.0001246/0.6206, allocations: 99.73 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000406/0.621, allocations: 98.86 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.621, allocations: 0 / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.6212, allocations: 57.45 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.6216, allocations: 5.578 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003472/0.6219, allocations: 162.9 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.6221, allocations: 0.6946 MB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.501e-05/0.6222, allocations: 8 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.6222, allocations: 13.03 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of SimCode: time 1.722e-06/0.6222, allocations: 3.938 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of Templates: time 0.003177/0.6254, allocations: 0.6016 MB / 1.467 GB, free: 277.4 MB / 0.8542 GB