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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 107.1 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002712/0.002712, allocations: 288.7 kB / 303 MB, free: 9.512 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.247/1.247, allocations: 180.9 MB / 0.5261 GB, free: 14.65 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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 0.002723/0.002723, allocations: 102.8 kB / 0.7248 GB, free: 39.99 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1721, allocations: 94.16 MB / 0.8167 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.00291/0.1751, allocations: 1.531 MB / 0.8182 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003689/0.1754, allocations: 120.5 kB / 0.8183 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.114e-05/0.1755, allocations: 0 / 0.8183 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1756, allocations: 23.86 kB / 0.8184 GB, free: 3.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.617e-05/0.1756, allocations: 3.938 kB / 0.8184 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.1759, allocations: 27.91 kB / 0.8184 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.176, allocations: 51.89 kB / 0.8184 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.1761, allocations: 19.98 kB / 0.8185 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.993e-05/0.1762, allocations: 27.86 kB / 0.8185 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.102e-05/0.1763, allocations: 27.91 kB / 0.8185 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.1763, allocations: 4 kB / 0.8185 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.849e-05/0.1764, allocations: 19.98 kB / 0.8185 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.664e-05/0.1764, allocations: 15.92 kB / 0.8186 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.1765, allocations: 27.86 kB / 0.8186 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1766, allocations: 63.95 kB / 0.8186 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1766, allocations: 0 / 0.8186 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1766, allocations: 0 / 0.8186 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.1766, allocations: 0 / 0.8186 GB, free: 3.465 MB / 0.5606 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.0005932/0.1772, allocations: 383.1 kB / 0.819 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.1773, allocations: 15.97 kB / 0.819 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.38e-05/0.1773, allocations: 34.75 kB / 0.8191 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.416e-05/0.1773, allocations: 12.89 kB / 0.8191 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.1775, allocations: 172.4 kB / 0.8192 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.1775, allocations: 8.375 kB / 0.8192 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1776, allocations: 4.375 kB / 0.8192 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.1778, allocations: 94.06 kB / 0.8193 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.1779, allocations: 3.938 kB / 0.8193 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.1779, allocations: 4 kB / 0.8193 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1779, allocations: 4 kB / 0.8193 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.1782, allocations: 75.92 kB / 0.8194 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005655/0.1787, allocations: 328.7 kB / 0.8197 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.1789, allocations: 58.55 kB / 0.8198 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.1791, allocations: 36.91 kB / 0.8198 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.1791, allocations: 4 kB / 0.8198 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1792, allocations: 34.59 kB / 0.8199 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1792, allocations: 4 kB / 0.8199 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005722/0.1797, allocations: 137.5 kB / 0.82 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.1798, allocations: 55.41 kB / 0.8201 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.1799, allocations: 113.8 kB / 0.8202 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.1799, allocations: 25.7 kB / 0.8202 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.931e-05/0.18, allocations: 104 kB / 0.8203 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.18, allocations: 7.938 kB / 0.8203 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.18, allocations: 17.72 kB / 0.8203 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1802, allocations: 314.8 kB / 0.8206 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.1803, allocations: 35.95 kB / 0.8206 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.1805, allocations: 39.91 kB / 0.8207 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.1807, allocations: 80.98 kB / 0.8208 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1807, allocations: 0 / 0.8208 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003183/0.181, allocations: 109.6 kB / 0.8209 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1811, allocations: 4 kB / 0.8209 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1811, allocations: 0 / 0.8209 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.1811, allocations: 0 / 0.8209 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.1812, allocations: 19.97 kB / 0.8209 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1812, allocations: 0 / 0.8209 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.408e-05/0.1813, allocations: 11.98 kB / 0.8209 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.1813, allocations: 0 / 0.8209 GB, free: 0.9219 MB / 0.5606 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.019e-05/0.1814, allocations: 121.8 kB / 0.821 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.1814, allocations: 7.953 kB / 0.821 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003644/0.1818, allocations: 117.4 kB / 0.8211 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1818, allocations: 4 kB / 0.8211 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1818, allocations: 0 / 0.8211 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1818, allocations: 0 / 0.8211 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.182, allocations: 189.5 kB / 0.8213 GB, free: 432 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.182, allocations: 4 kB / 0.8213 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.329e-05/0.1821, allocations: 19.98 kB / 0.8213 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1821, allocations: 3.984 kB / 0.8213 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-06/0.1821, allocations: 0 / 0.8213 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1821, allocations: 0 / 0.8213 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1821, allocations: 0 / 0.8213 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.1825, allocations: 207.3 kB / 0.8215 GB, free: 180 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.858e-05/0.1825, allocations: 85.06 kB / 0.8216 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.1825, allocations: 0 / 0.8216 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-05/0.1826, allocations: 7.984 kB / 0.8216 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.654e-05/0.1827, allocations: 8 kB / 0.8216 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.1827, allocations: 3.984 kB / 0.8216 GB, free: 56 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.721e-05/0.1827, allocations: 87.28 kB / 0.8217 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.1827, allocations: 8 kB / 0.8217 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000222/0.183, allocations: 11.94 kB / 0.8217 GB, free: 15.95 MB / 0.5762 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.0007333/0.1837, allocations: 0.7435 MB / 0.8225 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003248/0.184, allocations: 71.92 kB / 0.8225 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.184, allocations: 0 / 0.8225 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.1842, allocations: 43.95 kB / 0.8226 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.1845, allocations: 4.766 kB / 0.8226 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.1864, allocations: 1.43 MB / 0.824 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.1867, allocations: 0.6962 MB / 0.8247 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 4.964e-05/0.1868, allocations: 7.984 kB / 0.8247 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.49e-05/0.1868, allocations: 15.44 kB / 0.8247 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of SimCode: time 8.62e-07/0.1868, allocations: 0 / 0.8247 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.2102, allocations: 1.853 MB / 0.8265 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.116, allocations: 4.656 kB / 0.8265 GB, free: 11.05 MB / 0.5762 GB " [Timeout remaining time 652] (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: 12.338205209001899] Failed to read output from testmodel.py, exit status != 0: 8.182821440976113 8.198417788 8.018877314 Calling exit ...