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.002495/0.002496, allocations: 358.3 kB / 16.58 MB, free: 5.566 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.539/1.539, allocations: 165.8 MB / 183.1 MB, free: 5.375 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.722/3.722, allocations: 410.8 MB / 0.6001 GB, free: 15.08 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001765/0.001765, allocations: 194.9 kB / 0.6668 GB, free: 6.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000471/0.0004711, allocations: 19.98 kB / 0.7429 GB, free: 8.957 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4141, allocations: 67.43 MB / 0.8087 GB, free: 28.79 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1739/0.5881, allocations: 98.48 MB / 0.9049 GB, free: 10.18 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.5884, allocations: 75.97 kB / 0.905 GB, free: 10.11 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004862/0.5933, allocations: 1.126 MB / 0.9061 GB, free: 8.973 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5934, allocations: 0 / 0.9061 GB, free: 8.973 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.5934, allocations: 0 / 0.9061 GB, free: 8.973 MB / 458.7 MB 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.0006285/0.594, allocations: 383.1 kB / 0.9064 GB, free: 8.551 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.5941, allocations: 12.02 kB / 0.9065 GB, free: 8.539 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.5941, allocations: 11.91 kB / 0.9065 GB, free: 8.527 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.5944, allocations: 183 kB / 0.9066 GB, free: 8.309 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.5944, allocations: 4 kB / 0.9066 GB, free: 8.305 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.5944, allocations: 4 kB / 0.9066 GB, free: 8.301 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004353/0.5949, allocations: 105.6 kB / 0.9067 GB, free: 8.191 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.5949, allocations: 0 / 0.9067 GB, free: 8.191 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.5949, allocations: 3.953 kB / 0.9067 GB, free: 8.188 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.5949, allocations: 7.938 kB / 0.9068 GB, free: 8.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005797/0.5955, allocations: 95.92 kB / 0.9068 GB, free: 8.086 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.5964, allocations: 336.6 kB / 0.9072 GB, free: 7.707 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.5968, allocations: 74.53 kB / 0.9072 GB, free: 7.625 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.5971, allocations: 48.91 kB / 0.9073 GB, free: 7.574 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-05/0.5971, allocations: 4 kB / 0.9073 GB, free: 7.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.5972, allocations: 34.66 kB / 0.9073 GB, free: 7.527 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 4.729e-06/0.5972, allocations: 3.938 kB / 0.9073 GB, free: 7.523 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.001011/0.5982, allocations: 173.4 kB / 0.9075 GB, free: 7.348 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.5983, allocations: 51.41 kB / 0.9075 GB, free: 7.285 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.5984, allocations: 125.8 kB / 0.9077 GB, free: 7.152 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.5985, allocations: 25.7 kB / 0.9077 GB, free: 7.121 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.5985, allocations: 92.08 kB / 0.9078 GB, free: 7.027 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.5986, allocations: 7.812 kB / 0.9078 GB, free: 7.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-06/0.5986, allocations: 4 kB / 0.9078 GB, free: 7.016 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5987, allocations: 317.8 kB / 0.9081 GB, free: 6.699 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.599, allocations: 43.97 kB / 0.9081 GB, free: 6.656 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.5993, allocations: 47.95 kB / 0.9082 GB, free: 6.609 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.5996, allocations: 51.95 kB / 0.9082 GB, free: 6.559 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.5997, allocations: 0 / 0.9082 GB, free: 6.559 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006585/0.6003, allocations: 125.5 kB / 0.9083 GB, free: 6.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.6004, allocations: 10.81 kB / 0.9084 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.6004, allocations: 0 / 0.9084 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.6004, allocations: 0 / 0.9084 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.6006, allocations: 27.97 kB / 0.9084 GB, free: 6.395 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.6007, allocations: 0 / 0.9084 GB, free: 6.395 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.6008, allocations: 15.98 kB / 0.9084 GB, free: 6.379 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.6009, allocations: 0 / 0.9084 GB, free: 6.379 MB / 458.7 MB 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 0.000119/0.601, allocations: 117.8 kB / 0.9085 GB, free: 6.254 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/0.6011, allocations: 15.86 kB / 0.9085 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000684/0.6018, allocations: 133.8 kB / 0.9087 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.6018, allocations: 0 / 0.9087 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6018, allocations: 0 / 0.9087 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.6018, allocations: 8.031 kB / 0.9087 GB, free: 6.094 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.6021, allocations: 177.6 kB / 0.9088 GB, free: 5.871 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.6021, allocations: 0 / 0.9088 GB, free: 5.871 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.6023, allocations: 23.97 kB / 0.9089 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.6023, allocations: 3.953 kB / 0.9089 GB, free: 5.844 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.6023, allocations: 4 kB / 0.9089 GB, free: 5.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.585e-06/0.6023, allocations: 0 / 0.9089 GB, free: 5.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6023, allocations: 3.938 kB / 0.9089 GB, free: 5.836 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006768/0.603, allocations: 231.2 kB / 0.9091 GB, free: 5.594 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.6031, allocations: 77.11 kB / 0.9092 GB, free: 5.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.6031, allocations: 11.95 kB / 0.9092 GB, free: 5.488 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.6033, allocations: 19.98 kB / 0.9092 GB, free: 5.469 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.6034, allocations: 7.984 kB / 0.9092 GB, free: 5.461 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.6034, allocations: 0 / 0.9092 GB, free: 5.461 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.043e-05/0.6035, allocations: 91.27 kB / 0.9093 GB, free: 5.371 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6035, allocations: 4 kB / 0.9093 GB, free: 5.367 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002939/0.6038, allocations: 11.94 kB / 0.9093 GB, free: 5.355 MB / 458.7 MB 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.00016/0.604, allocations: 95.25 kB / 0.9094 GB, free: 5.254 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0006421/0.6046, allocations: 95.92 kB / 0.9095 GB, free: 5.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6047, allocations: 4 kB / 0.9095 GB, free: 5.156 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003074/0.605, allocations: 55.89 kB / 0.9095 GB, free: 5.102 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.6053, allocations: 4 kB / 0.9095 GB, free: 5.098 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004669/0.6058, allocations: 164.8 kB / 0.9097 GB, free: 4.902 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.6061, allocations: 0.6926 MB / 0.9104 GB, free: 4.184 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 6.934e-05/0.6062, allocations: 7.984 kB / 0.9104 GB, free: 4.176 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.169e-05/0.6062, allocations: 11.44 kB / 0.9104 GB, free: 4.164 MB / 458.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6062, allocations: 3.938 kB / 0.9104 GB, free: 4.16 MB / 458.7 MB Notification: Performance of Templates: time 0.003599/0.6098, allocations: 0.6065 MB / 0.911 GB, free: 3.559 MB / 458.7 MB