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.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002675/0.002675, allocations: 100.3 kB / 16.4 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 193.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.256/2.256, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.9218/0.9218, allocations: 115.3 MB / 406.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 65.11 kB / 0.5572 GB, free: 32.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2289, allocations: 76.19 MB / 0.6316 GB, free: 4.891 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.003489/0.2324, allocations: 1.522 MB / 0.6331 GB, free: 3.355 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004432/0.2329, allocations: 108.5 kB / 0.6332 GB, free: 3.246 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.505e-05/0.233, allocations: 4 kB / 0.6332 GB, free: 3.242 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.2332, allocations: 11.86 kB / 0.6332 GB, free: 3.23 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.716e-05/0.2333, allocations: 7.922 kB / 0.6332 GB, free: 3.223 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.2336, allocations: 27.91 kB / 0.6332 GB, free: 3.195 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.2337, allocations: 55.89 kB / 0.6333 GB, free: 3.141 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.2339, allocations: 20 kB / 0.6333 GB, free: 3.121 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.508e-05/0.2339, allocations: 23.91 kB / 0.6333 GB, free: 3.098 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.047e-05/0.234, allocations: 31.86 kB / 0.6334 GB, free: 3.066 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.2341, allocations: 7.984 kB / 0.6334 GB, free: 3.059 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.362e-05/0.2341, allocations: 15.98 kB / 0.6334 GB, free: 3.043 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.067e-05/0.2342, allocations: 15.92 kB / 0.6334 GB, free: 3.027 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 4.047e-05/0.2342, allocations: 19.88 kB / 0.6334 GB, free: 3.008 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.2344, allocations: 67.73 kB / 0.6335 GB, free: 2.941 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.2344, allocations: 3.984 kB / 0.6335 GB, free: 2.938 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2344, allocations: 0 / 0.6335 GB, free: 2.938 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2344, allocations: 4 kB / 0.6335 GB, free: 2.934 MB / 478.1 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.0006349/0.2351, allocations: 375 kB / 0.6338 GB, free: 2.52 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.2351, allocations: 8.031 kB / 0.6339 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.2352, allocations: 42.73 kB / 0.6339 GB, free: 2.461 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.704e-05/0.2352, allocations: 4.844 kB / 0.6339 GB, free: 2.457 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.2355, allocations: 184.2 kB / 0.6341 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.2355, allocations: 8.375 kB / 0.6341 GB, free: 2.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.2355, allocations: 384 / 0.6341 GB, free: 2.23 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.2358, allocations: 90.14 kB / 0.6342 GB, free: 2.137 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2359, allocations: 3.938 kB / 0.6342 GB, free: 2.133 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.2359, allocations: 7.969 kB / 0.6342 GB, free: 2.125 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2359, allocations: 0 / 0.6342 GB, free: 2.125 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003265/0.2362, allocations: 83.92 kB / 0.6343 GB, free: 2.043 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.2369, allocations: 320.6 kB / 0.6346 GB, free: 1.68 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.2371, allocations: 66.53 kB / 0.6346 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.2373, allocations: 36.91 kB / 0.6347 GB, free: 1.566 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.296e-05/0.2373, allocations: 4 kB / 0.6347 GB, free: 1.562 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.2373, allocations: 38.59 kB / 0.6347 GB, free: 1.516 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.823e-06/0.2374, allocations: 0 / 0.6347 GB, free: 1.516 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006029/0.238, allocations: 137.5 kB / 0.6348 GB, free: 1.375 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.238, allocations: 55.41 kB / 0.6349 GB, free: 1.309 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.2381, allocations: 121.8 kB / 0.635 GB, free: 1.18 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.2382, allocations: 25.7 kB / 0.635 GB, free: 1.148 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.882e-05/0.2382, allocations: 95.98 kB / 0.6351 GB, free: 1.051 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.2383, allocations: 3.906 kB / 0.6351 GB, free: 1.047 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.484e-05/0.2383, allocations: 25.7 kB / 0.6352 GB, free: 1.016 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.2385, allocations: 318.8 kB / 0.6355 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.2386, allocations: 35.95 kB / 0.6355 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.2388, allocations: 31.97 kB / 0.6355 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.2391, allocations: 76.72 kB / 0.6356 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2391, allocations: 0 / 0.6356 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003514/0.2394, allocations: 105.5 kB / 0.6357 GB, free: 452 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.2395, allocations: 5.719 kB / 0.6357 GB, free: 448 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2395, allocations: 3.938 kB / 0.6357 GB, free: 444 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.2395, allocations: 8 kB / 0.6357 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.2397, allocations: 19.97 kB / 0.6357 GB, free: 416 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.2397, allocations: 0 / 0.6357 GB, free: 416 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.262e-05/0.2398, allocations: 15.98 kB / 0.6357 GB, free: 400 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.2398, allocations: 0 / 0.6357 GB, free: 400 kB / 478.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.354e-05/0.2399, allocations: 113.8 kB / 0.6359 GB, free: 276 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.036e-05/0.2399, allocations: 8 kB / 0.6359 GB, free: 268 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004268/0.2404, allocations: 117.4 kB / 0.636 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.2404, allocations: 4 kB / 0.636 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2404, allocations: 0 / 0.636 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2404, allocations: 0 / 0.636 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.2406, allocations: 181.6 kB / 0.6362 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2406, allocations: 0 / 0.6362 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.2407, allocations: 16.36 kB / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.2407, allocations: 4 kB / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.2407, allocations: 0 / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.2408, allocations: 3.984 kB / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2408, allocations: 0 / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/0.2412, allocations: 203.3 kB / 0.6364 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.2412, allocations: 96.78 kB / 0.6365 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.2412, allocations: 0 / 0.6365 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.2414, allocations: 11.98 kB / 0.6365 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.584e-05/0.2414, allocations: 4 kB / 0.6365 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.2414, allocations: 0 / 0.6365 GB, free: 15.54 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.848e-05/0.2415, allocations: 91.27 kB / 0.6366 GB, free: 15.45 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2415, allocations: 4 kB / 0.6366 GB, free: 15.44 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.2417, allocations: 15.94 kB / 0.6366 GB, free: 15.43 MB / 494.1 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 (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.0007501/0.2425, allocations: 0.7474 MB / 0.6373 GB, free: 14.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.2429, allocations: 75.92 kB / 0.6374 GB, free: 14.58 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2429, allocations: 0 / 0.6374 GB, free: 14.58 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.2431, allocations: 39.95 kB / 0.6374 GB, free: 14.54 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.2434, allocations: 7.938 kB / 0.6374 GB, free: 14.53 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.2453, allocations: 1.421 MB / 0.6388 GB, free: 13.03 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2456, allocations: 0.6962 MB / 0.6395 GB, free: 12.31 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.372e-05/0.2457, allocations: 15.98 kB / 0.6395 GB, free: 12.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.18e-05/0.2457, allocations: 11.44 kB / 0.6395 GB, free: 12.28 MB / 494.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2458, allocations: 0 / 0.6395 GB, free: 12.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.279/1.524, allocations: 1.847 MB / 0.6413 GB, free: 10.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/14.85, allocations: 15.39 kB / 0.6413 GB, free: 10.49 MB / 494.1 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/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)