Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.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 IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002396/0.002396, allocations: 356.8 kB / 15.94 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.331/1.331, allocations: 165.8 MB / 182.5 MB, free: 5.918 MB / 90.73 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.525/4.525, allocations: 410.7 MB / 0.5995 GB, free: 2.191 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001798/0.001797, allocations: 180.2 kB / 0.6662 GB, free: 14.05 MB / 490.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004557/0.000456, allocations: 12 kB / 0.7423 GB, free: 44 kB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3869, allocations: 67.44 MB / 0.8081 GB, free: 245.1 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.001697/0.3886, allocations: 1.225 MB / 0.8093 GB, free: 244.6 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0002856/0.3889, allocations: 114.6 kB / 0.8094 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.571e-05/0.389, allocations: 1.406 kB / 0.8094 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 9.106e-05/0.3891, allocations: 9.328 kB / 0.8095 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 3.016e-05/0.3891, allocations: 5.906 kB / 0.8095 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.3893, allocations: 21.77 kB / 0.8095 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 8.75e-05/0.3894, allocations: 50.06 kB / 0.8095 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.502e-05/0.3895, allocations: 15.33 kB / 0.8095 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 5.284e-05/0.3896, allocations: 20.17 kB / 0.8096 GB, free: 244.5 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 6.358e-05/0.3897, allocations: 29.88 kB / 0.8096 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.3897, allocations: 2.281 kB / 0.8096 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.3898, allocations: 9.312 kB / 0.8096 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.3898, allocations: 7.797 kB / 0.8096 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.267e-05/0.3899, allocations: 36.77 kB / 0.8096 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.39, allocations: 45.97 kB / 0.8097 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.39, allocations: 3.375 kB / 0.8097 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.869e-06/0.39, allocations: 0.7188 kB / 0.8097 GB, free: 244.4 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.39, allocations: 0 / 0.8097 GB, free: 244.4 MB / 0.5886 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.0004438/0.3905, allocations: 381.4 kB / 0.8101 GB, free: 244 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3905, allocations: 12.36 kB / 0.8101 GB, free: 244 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.3906, allocations: 7.469 kB / 0.8101 GB, free: 244 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.3907, allocations: 181.1 kB / 0.8102 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.3907, allocations: 1.156 kB / 0.8102 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.3908, allocations: 3.406 kB / 0.8103 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.3911, allocations: 105.5 kB / 0.8104 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.35e-06/0.3911, allocations: 2.156 kB / 0.8104 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.3912, allocations: 5.188 kB / 0.8104 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.695e-06/0.3912, allocations: 1.25 kB / 0.8104 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004016/0.3916, allocations: 97.95 kB / 0.8105 GB, free: 243.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.3922, allocations: 343.7 kB / 0.8108 GB, free: 243.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.3924, allocations: 66.75 kB / 0.8108 GB, free: 243.4 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.3927, allocations: 61.8 kB / 0.8109 GB, free: 243.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.3927, allocations: 2.031 kB / 0.8109 GB, free: 243.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.3927, allocations: 32.59 kB / 0.8109 GB, free: 243.4 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 2.495e-06/0.3927, allocations: 0.625 kB / 0.8109 GB, free: 243.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0006729/0.3934, allocations: 171.6 kB / 0.8111 GB, free: 243.3 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.3935, allocations: 52.78 kB / 0.8112 GB, free: 243.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.5e-05/0.3936, allocations: 115.3 kB / 0.8113 GB, free: 243.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.3936, allocations: 26.36 kB / 0.8113 GB, free: 243.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.16e-05/0.3936, allocations: 98.58 kB / 0.8114 GB, free: 243 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.3937, allocations: 12 kB / 0.8114 GB, free: 243 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.385e-06/0.3937, allocations: 0.625 kB / 0.8114 GB, free: 243 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 5.727e-05/0.3938, allocations: 327.2 kB / 0.8117 GB, free: 242.7 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.394, allocations: 45.06 kB / 0.8117 GB, free: 242.7 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.3942, allocations: 44.61 kB / 0.8118 GB, free: 242.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.3944, allocations: 47.95 kB / 0.8118 GB, free: 242.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.239e-06/0.3944, allocations: 0 / 0.8118 GB, free: 242.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004366/0.3948, allocations: 132.1 kB / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3949, allocations: 5.781 kB / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.915e-06/0.3949, allocations: 1.031 kB / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3949, allocations: 0 / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.3951, allocations: 23.05 kB / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.289e-06/0.3951, allocations: 0.8438 kB / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3952, allocations: 16.97 kB / 0.812 GB, free: 242.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.3952, allocations: 5.031 kB / 0.812 GB, free: 242.6 MB / 0.5886 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.558e-05/0.3953, allocations: 122.4 kB / 0.8121 GB, free: 242.5 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.3954, allocations: 6.031 kB / 0.8121 GB, free: 242.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004688/0.3958, allocations: 144.2 kB / 0.8123 GB, free: 242.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.346e-06/0.3959, allocations: 0 / 0.8123 GB, free: 242.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.645e-06/0.3959, allocations: 1.094 kB / 0.8123 GB, free: 242.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.003e-06/0.3959, allocations: 1.828 kB / 0.8123 GB, free: 242.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.3961, allocations: 181 kB / 0.8124 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3961, allocations: 0.625 kB / 0.8125 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.3963, allocations: 27.12 kB / 0.8125 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.678e-06/0.3963, allocations: 0 / 0.8125 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.3963, allocations: 1.438 kB / 0.8125 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.878e-06/0.3963, allocations: 1.844 kB / 0.8125 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3963, allocations: 0 / 0.8125 GB, free: 242.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004848/0.3968, allocations: 223.7 kB / 0.8127 GB, free: 242.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/0.3969, allocations: 87.56 kB / 0.8128 GB, free: 242 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.3969, allocations: 1.469 kB / 0.8128 GB, free: 242 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.3971, allocations: 19.25 kB / 0.8128 GB, free: 242 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.3971, allocations: 7.516 kB / 0.8128 GB, free: 242 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3971, allocations: 5.406 kB / 0.8128 GB, free: 242 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.016e-05/0.3972, allocations: 91.66 kB / 0.8129 GB, free: 241.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.58e-07/0.3972, allocations: 0 / 0.8129 GB, free: 241.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003183/0.3975, allocations: 10.41 kB / 0.8129 GB, free: 241.9 MB / 0.5886 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.0001269/0.3977, allocations: 97.72 kB / 0.813 GB, free: 241.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004313/0.3981, allocations: 99.94 kB / 0.8131 GB, free: 241.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.507e-06/0.3981, allocations: 0 / 0.8131 GB, free: 241.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.3984, allocations: 57.03 kB / 0.8131 GB, free: 241.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3987, allocations: 9.422 kB / 0.8132 GB, free: 241.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003668/0.3991, allocations: 164.1 kB / 0.8133 GB, free: 241.7 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.3993, allocations: 0.6942 MB / 0.814 GB, free: 241 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.635e-05/0.3993, allocations: 12.17 kB / 0.814 GB, free: 241 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.949e-05/0.3994, allocations: 9.703 kB / 0.814 GB, free: 241 MB / 0.5886 GB Notification: Performance of SimCode: time 1.444e-06/0.3994, allocations: 0 / 0.814 GB, free: 241 MB / 0.5886 GB Notification: Performance of Templates: time 0.003321/0.4027, allocations: 0.616 MB / 0.8146 GB, free: 241 MB / 0.5886 GB