Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.0009357/0.0009357, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.00106/0.00106, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 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 0.867/0.867, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001416/0.001416, allocations: 233.7 kB / 259.4 MB, free: 13.03 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6606/0.6606, allocations: 138.4 MB / 454.3 MB, free: 29.96 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 0.6463 GB, free: 1.836 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.563e-05, allocations: 9.375 kB / 0.6463 GB, free: 1.828 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.001922/0.001948, allocations: 1.55 MB / 0.6478 GB, free: 268 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0002828/0.002231, allocations: 116.5 kB / 0.6479 GB, free: 148 kB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.848e-05/0.002279, allocations: 0 / 0.6479 GB, free: 148 kB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.002405, allocations: 11.88 kB / 0.6479 GB, free: 136 kB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 1.975e-05/0.002425, allocations: 7.938 kB / 0.6479 GB, free: 128 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.00268, allocations: 39.88 kB / 0.648 GB, free: 88 kB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 8.153e-05/0.002761, allocations: 51.84 kB / 0.648 GB, free: 36 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.002862, allocations: 11.98 kB / 0.648 GB, free: 24 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2499/0.2527, allocations: 31.06 kB / 0.6481 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.2528, allocations: 23.2 kB / 0.6481 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.115e-05/0.2529, allocations: 4.656 kB / 0.6481 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 9.492e-05/0.253, allocations: 14.36 kB / 0.6481 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.397e-05/0.253, allocations: 14.38 kB / 0.6481 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 3.884e-05/0.2531, allocations: 18.59 kB / 0.6481 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.2533, allocations: 63.75 kB / 0.6482 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2533, allocations: 0.5625 kB / 0.6482 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2533, allocations: 0 / 0.6482 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.2533, allocations: 1.406 kB / 0.6482 GB, free: 55.8 MB / 0.5573 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.0004303/0.2537, allocations: 305.5 kB / 0.6485 GB, free: 55.54 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.2537, allocations: 13.09 kB / 0.6485 GB, free: 55.54 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.821e-05/0.2538, allocations: 36.73 kB / 0.6485 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.2538, allocations: 9.047 kB / 0.6486 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.2539, allocations: 127.1 kB / 0.6487 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.254, allocations: 4.062 kB / 0.6487 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.254, allocations: 3.938 kB / 0.6487 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.2542, allocations: 90.09 kB / 0.6488 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.2542, allocations: 192 / 0.6488 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.2542, allocations: 2.562 kB / 0.6488 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.2542, allocations: 6.719 kB / 0.6488 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.2544, allocations: 81.77 kB / 0.6489 GB, free: 55.33 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004309/0.2548, allocations: 286.5 kB / 0.6491 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.255, allocations: 60.84 kB / 0.6492 GB, free: 55.07 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.557e-05/0.2551, allocations: 42.31 kB / 0.6492 GB, free: 55.06 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.2551, allocations: 2.859 kB / 0.6492 GB, free: 55.06 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.2551, allocations: 33.55 kB / 0.6493 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.904e-06/0.2551, allocations: 5.438 kB / 0.6493 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0003603/0.2555, allocations: 135.7 kB / 0.6494 GB, free: 54.99 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.2555, allocations: 56.55 kB / 0.6495 GB, free: 54.93 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.875e-05/0.2556, allocations: 116.5 kB / 0.6496 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.244e-06/0.2556, allocations: 26.2 kB / 0.6496 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.684e-05/0.2556, allocations: 96.84 kB / 0.6497 GB, free: 54.71 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.2557, allocations: 13.94 kB / 0.6497 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.2557, allocations: 16.7 kB / 0.6497 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.374e-05/0.2557, allocations: 317.1 kB / 0.65 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.366e-05/0.2558, allocations: 36.42 kB / 0.65 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.91e-05/0.2559, allocations: 36.38 kB / 0.6501 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.2561, allocations: 75.52 kB / 0.6502 GB, free: 54.36 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.2561, allocations: 0 / 0.6502 GB, free: 54.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001982/0.2563, allocations: 103.3 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2563, allocations: 9.234 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2563, allocations: 0.5625 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.2563, allocations: 0.75 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.2564, allocations: 19.28 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2564, allocations: 1.859 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.279e-05/0.2565, allocations: 11.09 kB / 0.6503 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.2565, allocations: 1.875 kB / 0.6503 GB, free: 54.33 MB / 0.5573 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 6e-05/0.2566, allocations: 126 kB / 0.6504 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.2566, allocations: 8.219 kB / 0.6504 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.2568, allocations: 111.3 kB / 0.6505 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2568, allocations: 2.812 kB / 0.6505 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.2568, allocations: 3.797 kB / 0.6505 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2568, allocations: 0 / 0.6505 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.257, allocations: 146.2 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.257, allocations: 1.422 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.112e-05/0.257, allocations: 16.27 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.257, allocations: 1.375 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.257, allocations: 2.25 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.257, allocations: 1.344 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.257, allocations: 1.5 kB / 0.6507 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.2572, allocations: 209.1 kB / 0.6509 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.407e-06/0.2572, allocations: 5.641 kB / 0.6509 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.2573, allocations: 3.266 kB / 0.6509 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.41e-05/0.2573, allocations: 14.17 kB / 0.6509 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.2574, allocations: 5.719 kB / 0.6509 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.749e-06/0.2574, allocations: 2.344 kB / 0.6509 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 3.042e-05/0.2574, allocations: 93.34 kB / 0.651 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.2574, allocations: 2.625 kB / 0.651 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001634/0.2576, allocations: 12.05 kB / 0.651 GB, free: 53.8 MB / 0.5573 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.000406/0.258, allocations: 0.7372 MB / 0.6518 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002203/0.2582, allocations: 77.73 kB / 0.6518 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2582, allocations: 1.562 kB / 0.6518 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 7.619e-05/0.2583, allocations: 40.56 kB / 0.6519 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.2585, allocations: 13.52 kB / 0.6519 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.2596, allocations: 1.423 MB / 0.6533 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.111e-05/0.2597, allocations: 79.39 kB / 0.6533 GB, free: 51.91 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 4.859e-05/0.2598, allocations: 7.703 kB / 0.6534 GB, free: 51.91 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.97e-05/0.2598, allocations: 20.12 kB / 0.6534 GB, free: 51.91 MB / 0.5573 GB Notification: Performance of SimCode: time 1.573e-06/0.2598, allocations: 0 / 0.6534 GB, free: 51.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01537/0.2752, allocations: 2.534 MB / 0.6558 GB, free: 51.06 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.613/6.888, allocations: 9.656 kB / 0.6559 GB, free: 51.05 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.387747048400342] Failed to read output from testmodel.py, exit status != 0: 6.964990879409015 6.972777705 6.717799303 Calling exit ...