Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Average.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.194/2.194, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001477/0.001477, allocations: 171 kB / 325.5 MB, free: 2.922 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.457/2.457, allocations: 205.4 MB / 0.5764 GB, free: 20.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001192/0.001192, allocations: 90.41 kB / 0.6809 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004917/0.0004916, allocations: 15.22 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2421, allocations: 106.3 MB / 0.8988 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2461/0.4882, allocations: 131.7 MB / 1.027 GB, free: 13.64 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.4885, allocations: 79.95 kB / 1.028 GB, free: 13.56 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004968/0.4935, allocations: 1.128 MB / 1.029 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4936, allocations: 0 / 1.029 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.408e-05/0.4936, allocations: 4 kB / 1.029 GB, free: 12.43 MB / 0.6823 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.00068/0.4943, allocations: 383.1 kB / 1.029 GB, free: 12 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4943, allocations: 8.031 kB / 1.029 GB, free: 12 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.259e-05/0.4944, allocations: 42.55 kB / 1.029 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.996e-05/0.4945, allocations: 7.906 kB / 1.029 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.4947, allocations: 182.9 kB / 1.029 GB, free: 11.72 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.4947, allocations: 4 kB / 1.029 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.217e-05/0.4947, allocations: 4 kB / 1.029 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.4952, allocations: 101.6 kB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4952, allocations: 4 kB / 1.029 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.4953, allocations: 0 / 1.029 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.4953, allocations: 0 / 1.029 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005957/0.4959, allocations: 99.92 kB / 1.029 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008087/0.4967, allocations: 340.6 kB / 1.03 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.4971, allocations: 66.55 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.243e-05/0.4971, allocations: 4.078 kB / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4972, allocations: 38.56 kB / 1.03 GB, free: 11 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 2.074e-06/0.4972, allocations: 0 / 1.03 GB, free: 11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.001012/0.4982, allocations: 177.5 kB / 1.03 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.4983, allocations: 51.41 kB / 1.03 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.4984, allocations: 116.7 kB / 1.03 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.4984, allocations: 29.7 kB / 1.03 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.081e-05/0.4985, allocations: 99.97 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.4985, allocations: 7.891 kB / 1.03 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-06/0.4986, allocations: 4 kB / 1.03 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.4987, allocations: 318.8 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002883/0.499, allocations: 43.95 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.4993, allocations: 43.97 kB / 1.031 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.4996, allocations: 43.95 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.4996, allocations: 4 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006458/0.5003, allocations: 137.5 kB / 1.031 GB, free: 9.891 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.5003, allocations: 4 kB / 1.031 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.5003, allocations: 0 / 1.031 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.5003, allocations: 0 / 1.031 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.5006, allocations: 23.94 kB / 1.031 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.5006, allocations: 0 / 1.031 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.5008, allocations: 23.89 kB / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.5008, allocations: 4 kB / 1.031 GB, free: 9.836 MB / 0.6823 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 0.0001091/0.5009, allocations: 117.8 kB / 1.031 GB, free: 9.711 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.501, allocations: 0 / 1.031 GB, free: 9.711 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006947/0.5017, allocations: 141.8 kB / 1.031 GB, free: 9.559 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.5017, allocations: 4.031 kB / 1.031 GB, free: 9.555 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.5017, allocations: 3.953 kB / 1.031 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.5017, allocations: 3.984 kB / 1.031 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.502, allocations: 177.6 kB / 1.031 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.502, allocations: 4 kB / 1.031 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.5022, allocations: 19.98 kB / 1.031 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.5022, allocations: 0 / 1.031 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.5023, allocations: 4 kB / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.5023, allocations: 0 / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5023, allocations: 0 / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.5034, allocations: 231.3 kB / 1.032 GB, free: 9.055 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.022e-05/0.5035, allocations: 77.11 kB / 1.032 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.5036, allocations: 0 / 1.032 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003361/0.5039, allocations: 15.98 kB / 1.032 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.504, allocations: 7.984 kB / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.5041, allocations: 0 / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001156/0.5042, allocations: 95.2 kB / 1.032 GB, free: 8.844 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.72e-07/0.5042, allocations: 0 / 1.032 GB, free: 8.844 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000653/0.5049, allocations: 27.8 kB / 1.032 GB, free: 8.816 MB / 0.6823 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.001633/0.5065, allocations: 0.7561 MB / 1.033 GB, free: 8.035 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001125/0.5077, allocations: 99.91 kB / 1.033 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.5077, allocations: 0 / 1.033 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004531/0.5082, allocations: 51.91 kB / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.5086, allocations: 9.875 kB / 1.033 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/0.5117, allocations: 0.5746 MB / 1.033 GB, free: 7.254 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.5122, allocations: 0.6926 MB / 1.034 GB, free: 6.535 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001038/0.5123, allocations: 11.98 kB / 1.034 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.513e-05/0.5124, allocations: 19.44 kB / 1.034 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of SimCode: time 1.273e-06/0.5124, allocations: 0 / 1.034 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02418/0.5366, allocations: 1.442 MB / 1.035 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003195/0.537, allocations: 172.4 kB / 1.036 GB, free: 4.93 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.486/3.023, allocations: 0 / 1.036 GB, free: 4.93 MB / 0.6823 GB