Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009198/0.0009197, allocations: 179.7 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4467/0.4467, allocations: 90.81 MB / 104.5 MB, free: 9.789 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 221.3 MB / 348.3 MB, free: 500 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008506/0.0008503, allocations: 97.67 kB / 421.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.712e-05/3.715e-05, allocations: 4 kB / 0.4897 GB, free: 5.258 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3532, allocations: 72.3 MB / 0.5603 GB, free: 40.43 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1168/0.4701, allocations: 101.7 MB / 0.6596 GB, free: 2.629 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.4704, allocations: 67.97 kB / 0.6597 GB, free: 2.562 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003368/0.4738, allocations: 1.147 MB / 0.6608 GB, free: 1.418 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4738, allocations: 0 / 0.6608 GB, free: 1.418 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.4738, allocations: 0 / 0.6608 GB, free: 1.418 MB / 474.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.0004266/0.4742, allocations: 370.4 kB / 0.6611 GB, free: 1.012 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.4743, allocations: 15.97 kB / 0.6611 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.4744, allocations: 40.88 kB / 0.6612 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.4744, allocations: 11.86 kB / 0.6612 GB, free: 0.9375 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.4746, allocations: 178.9 kB / 0.6614 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.4746, allocations: 4 kB / 0.6614 GB, free: 0.7188 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.4746, allocations: 7.938 kB / 0.6614 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.4748, allocations: 61.67 kB / 0.6614 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.4748, allocations: 0 / 0.6614 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.4748, allocations: 8 kB / 0.6614 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.4748, allocations: 0 / 0.6614 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.015e-05/0.4749, allocations: 47.86 kB / 0.6615 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.4754, allocations: 328.8 kB / 0.6618 GB, free: 224 kB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.024e-05/0.4755, allocations: 38.61 kB / 0.6618 GB, free: 176 kB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.871e-05/0.4756, allocations: 20.89 kB / 0.6619 GB, free: 152 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.4756, allocations: 4 kB / 0.6619 GB, free: 148 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.4756, allocations: 30.56 kB / 0.6619 GB, free: 108 kB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.4756, allocations: 0 / 0.6619 GB, free: 108 kB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.000174/0.4758, allocations: 61.59 kB / 0.662 GB, free: 40 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.4759, allocations: 55.41 kB / 0.662 GB, free: 15.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.405e-05/0.476, allocations: 109 kB / 0.6621 GB, free: 15.86 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.476, allocations: 29.69 kB / 0.6621 GB, free: 15.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.677e-05/0.476, allocations: 96.03 kB / 0.6622 GB, free: 15.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.4761, allocations: 7.844 kB / 0.6622 GB, free: 15.72 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.4761, allocations: 0 / 0.6622 GB, free: 15.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.4762, allocations: 320.8 kB / 0.6625 GB, free: 15.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.07e-05/0.4762, allocations: 16 kB / 0.6626 GB, free: 15.38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.69e-05/0.4762, allocations: 15.94 kB / 0.6626 GB, free: 15.37 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.082e-05/0.4763, allocations: 11.98 kB / 0.6626 GB, free: 15.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4763, allocations: 0 / 0.6626 GB, free: 15.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.79e-05/0.4764, allocations: 57.69 kB / 0.6626 GB, free: 15.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4764, allocations: 7.953 kB / 0.6626 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4764, allocations: 0 / 0.6626 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.4764, allocations: 0 / 0.6626 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4766, allocations: 23.98 kB / 0.6627 GB, free: 15.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.4766, allocations: 0 / 0.6627 GB, free: 15.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.043e-05/0.4767, allocations: 23.88 kB / 0.6627 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.4767, allocations: 4 kB / 0.6627 GB, free: 15.23 MB / 490.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 () * 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 6.232e-05/0.4768, allocations: 104.9 kB / 0.6628 GB, free: 15.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.4768, allocations: 0 / 0.6628 GB, free: 15.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.477, allocations: 85.59 kB / 0.6629 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.477, allocations: 0 / 0.6629 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.477, allocations: 0 / 0.6629 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.477, allocations: 0 / 0.6629 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.4772, allocations: 177.6 kB / 0.663 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4772, allocations: 4 kB / 0.6631 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.4773, allocations: 17.11 kB / 0.6631 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4773, allocations: 4 kB / 0.6631 GB, free: 14.78 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.4773, allocations: 0 / 0.6631 GB, free: 14.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.4773, allocations: 11.94 kB / 0.6631 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4773, allocations: 0 / 0.6631 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.4775, allocations: 159.6 kB / 0.6632 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.352e-05/0.4775, allocations: 77.16 kB / 0.6633 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.4776, allocations: 3.984 kB / 0.6633 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.4777, allocations: 19.98 kB / 0.6633 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.4777, allocations: 11.94 kB / 0.6633 GB, free: 14.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.4777, allocations: 0 / 0.6633 GB, free: 14.47 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.128e-05/0.4778, allocations: 89.14 kB / 0.6634 GB, free: 14.38 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4778, allocations: 1.125 kB / 0.6634 GB, free: 14.38 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.478, allocations: 15.91 kB / 0.6634 GB, free: 14.37 MB / 490.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 () * 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.0004245/0.4784, allocations: 0.6929 MB / 0.6641 GB, free: 13.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.4786, allocations: 31.98 kB / 0.6642 GB, free: 13.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4786, allocations: 0 / 0.6642 GB, free: 13.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.87e-05/0.4786, allocations: 16 kB / 0.6642 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.4788, allocations: 11.95 kB / 0.6642 GB, free: 13.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003868/0.4792, allocations: 134.5 kB / 0.6643 GB, free: 13.42 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.4794, allocations: 0.7004 MB / 0.665 GB, free: 12.69 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 4.83e-05/0.4795, allocations: 12.77 kB / 0.665 GB, free: 12.68 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.111e-05/0.4795, allocations: 15.44 kB / 0.665 GB, free: 12.66 MB / 490.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4796, allocations: 0 / 0.665 GB, free: 12.66 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/0.4921, allocations: 1.448 MB / 0.6664 GB, free: 11.36 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.4924, allocations: 142.4 kB / 0.6666 GB, free: 11.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.454/1.947, allocations: 0 / 0.6666 GB, free: 11.13 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)