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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 114.1 kB / 17.84 MB, free: 5.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 203.2 kB / 20.8 MB, free: 2.371 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 254.2 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 1.003/1.003, allocations: 150 MB / 460.2 MB, free: 5.238 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 78.83 kB / 0.6368 GB, free: 30.47 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1541, allocations: 89.13 MB / 0.7238 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.002824/0.1569, allocations: 1.547 MB / 0.7254 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003347/0.1572, allocations: 113.6 kB / 0.7255 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.436e-05/0.1573, allocations: 0 / 0.7255 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.1574, allocations: 15.86 kB / 0.7255 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.762e-05/0.1575, allocations: 11.92 kB / 0.7255 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.1577, allocations: 27.97 kB / 0.7255 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.1578, allocations: 51.78 kB / 0.7256 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1579, allocations: 23.98 kB / 0.7256 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.876e-05/0.158, allocations: 27.91 kB / 0.7256 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.158e-05/0.1581, allocations: 39.83 kB / 0.7257 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1581, allocations: 4 kB / 0.7257 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.691e-05/0.1581, allocations: 8 kB / 0.7257 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.473e-05/0.1582, allocations: 15.98 kB / 0.7257 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.822e-05/0.1582, allocations: 23.81 kB / 0.7257 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.1584, allocations: 75.88 kB / 0.7258 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1584, allocations: 0 / 0.7258 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1584, allocations: 0 / 0.7258 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.1584, allocations: 0 / 0.7258 GB, free: 2.02 MB / 0.5294 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.0006855/0.1591, allocations: 387.1 kB / 0.7261 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.1591, allocations: 8.031 kB / 0.7262 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.688e-05/0.1592, allocations: 4.188 kB / 0.7262 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.7e-05/0.1592, allocations: 30.75 kB / 0.7262 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.1592, allocations: 4.938 kB / 0.7262 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.1595, allocations: 183.9 kB / 0.7264 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.1595, allocations: 4.375 kB / 0.7264 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.1596, allocations: 4.375 kB / 0.7264 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.1602, allocations: 101.9 kB / 0.7265 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1602, allocations: 4 kB / 0.7265 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1602, allocations: 0 / 0.7265 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1602, allocations: 3.938 kB / 0.7265 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.1606, allocations: 75.92 kB / 0.7266 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007871/0.1614, allocations: 336.6 kB / 0.7269 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.1616, allocations: 54.64 kB / 0.7269 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.1618, allocations: 44.81 kB / 0.727 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 7.458e-05/0.1619, allocations: 3.984 kB / 0.727 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.011e-05/0.162, allocations: 30.56 kB / 0.727 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/0.162, allocations: 0 / 0.727 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0006902/0.1626, allocations: 149.6 kB / 0.7271 GB, free: 448 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.572e-05/0.1627, allocations: 55.39 kB / 0.7272 GB, free: 380 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.1629, allocations: 109.8 kB / 0.7273 GB, free: 260 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.1629, allocations: 25.7 kB / 0.7273 GB, free: 228 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.943e-05/0.163, allocations: 96.09 kB / 0.7274 GB, free: 128 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.163, allocations: 11.88 kB / 0.7274 GB, free: 116 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.1631, allocations: 17.72 kB / 0.7274 GB, free: 92 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002222/0.1633, allocations: 318.8 kB / 0.7278 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.1634, allocations: 35.95 kB / 0.7278 GB, free: 15.73 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.1636, allocations: 35.95 kB / 0.7278 GB, free: 15.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.1639, allocations: 76.72 kB / 0.7279 GB, free: 15.62 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1639, allocations: 4 kB / 0.7279 GB, free: 15.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003451/0.1642, allocations: 101.6 kB / 0.728 GB, free: 15.51 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1643, allocations: 7.938 kB / 0.728 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1643, allocations: 0 / 0.728 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1643, allocations: 4 kB / 0.728 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1644, allocations: 15.97 kB / 0.728 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1644, allocations: 0 / 0.728 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.127e-05/0.1645, allocations: 15.98 kB / 0.728 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.1645, allocations: 3.938 kB / 0.728 GB, free: 15.46 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.543e-05/0.1646, allocations: 113.8 kB / 0.7282 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.1646, allocations: 7.984 kB / 0.7282 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000406/0.1651, allocations: 121.4 kB / 0.7283 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1651, allocations: 0 / 0.7283 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1651, allocations: 3.938 kB / 0.7283 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1651, allocations: 0 / 0.7283 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.1653, allocations: 181.6 kB / 0.7285 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1653, allocations: 0 / 0.7285 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.1654, allocations: 19.97 kB / 0.7285 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1654, allocations: 0 / 0.7285 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.393e-06/0.1654, allocations: 0 / 0.7285 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.1654, allocations: 0 / 0.7285 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1654, allocations: 4 kB / 0.7285 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/0.1658, allocations: 203.3 kB / 0.7287 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.557e-05/0.1658, allocations: 89.06 kB / 0.7288 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.1658, allocations: 432 / 0.7288 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.166, allocations: 15.98 kB / 0.7288 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.083e-05/0.166, allocations: 7.984 kB / 0.7288 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.166, allocations: 4 kB / 0.7288 GB, free: 14.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.87e-05/0.1661, allocations: 91.22 kB / 0.7289 GB, free: 14.51 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.1661, allocations: 0 / 0.7289 GB, free: 14.51 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002364/0.1663, allocations: 11.98 kB / 0.7289 GB, free: 14.5 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008596/0.1672, allocations: 0.7397 MB / 0.7296 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003849/0.1676, allocations: 75.86 kB / 0.7297 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.1676, allocations: 4 kB / 0.7297 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.1677, allocations: 39.95 kB / 0.7297 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1681, allocations: 4 kB / 0.7297 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.1701, allocations: 1.436 MB / 0.7311 GB, free: 12.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.1705, allocations: 0.6885 MB / 0.7318 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.444e-05/0.1705, allocations: 7.984 kB / 0.7318 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.495e-05/0.1706, allocations: 15.44 kB / 0.7318 GB, free: 11.36 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.1706, allocations: 7.875 kB / 0.7318 GB, free: 11.35 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.189, allocations: 1.862 MB / 0.7336 GB, free: 9.605 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.554/8.743, allocations: 9.391 kB / 0.7336 GB, free: 9.598 MB / 0.545 GB " [Timeout remaining time 651] (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/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.648676145006903] Failed to read output from testmodel.py, exit status != 0: 8.871334565978032 8.897872933 8.734662257 Calling exit ...