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.0008942/0.0008942, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009951/0.0009951, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8779/0.8779, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.00236/0.00236, allocations: 234.4 kB / 259.4 MB, free: 13.02 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.6564/0.6564, allocations: 138.4 MB / 454.3 MB, free: 30 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.714e-06/1.714e-06, allocations: 0 / 0.6463 GB, free: 1.883 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.098e-05/2.269e-05, allocations: 2.281 kB / 0.6463 GB, free: 1.879 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.00195/0.001972, allocations: 1.553 MB / 0.6478 GB, free: 320 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0002839/0.002256, allocations: 116.6 kB / 0.6479 GB, free: 200 kB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.968e-05/0.002306, allocations: 3.938 kB / 0.6479 GB, free: 196 kB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.002423, allocations: 3.938 kB / 0.6479 GB, free: 192 kB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 2.263e-05/0.002446, allocations: 15.86 kB / 0.6479 GB, free: 176 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.002705, allocations: 27.97 kB / 0.648 GB, free: 148 kB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 9.667e-05/0.002802, allocations: 59.77 kB / 0.648 GB, free: 88 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.002921, allocations: 15.98 kB / 0.648 GB, free: 72 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 6.322e-05/0.002984, allocations: 31.97 kB / 0.6481 GB, free: 40 kB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 6.007e-05/0.003044, allocations: 27.89 kB / 0.6481 GB, free: 12 kB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.003063, allocations: 8 kB / 0.6481 GB, free: 4 kB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2223/0.2254, allocations: 5.641 kB / 0.6481 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.251e-05/0.2255, allocations: 14.94 kB / 0.6481 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.222e-05/0.2255, allocations: 10.91 kB / 0.6481 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.2257, allocations: 68.84 kB / 0.6482 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2257, allocations: 1.953 kB / 0.6482 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2257, allocations: 1.344 kB / 0.6482 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2257, allocations: 0 / 0.6482 GB, free: 55.92 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.0004048/0.2261, allocations: 301.4 kB / 0.6485 GB, free: 55.66 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.2262, allocations: 12.97 kB / 0.6485 GB, free: 55.66 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.743e-05/0.2262, allocations: 36.23 kB / 0.6485 GB, free: 55.62 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.2262, allocations: 7.766 kB / 0.6486 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.2264, allocations: 125.7 kB / 0.6487 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.2264, allocations: 3.688 kB / 0.6487 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.2264, allocations: 8.906 kB / 0.6487 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/0.2266, allocations: 89.84 kB / 0.6488 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2266, allocations: 2.312 kB / 0.6488 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.2266, allocations: 2.812 kB / 0.6488 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2266, allocations: 4.781 kB / 0.6488 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.2268, allocations: 83.44 kB / 0.6489 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003522/0.2272, allocations: 291 kB / 0.6491 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.2273, allocations: 57 kB / 0.6492 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.055e-05/0.2274, allocations: 41.61 kB / 0.6492 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.403e-05/0.2274, allocations: 2.891 kB / 0.6492 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.2274, allocations: 37.44 kB / 0.6493 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.623e-06/0.2274, allocations: 4.562 kB / 0.6493 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0003467/0.2278, allocations: 140 kB / 0.6494 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.096e-05/0.2278, allocations: 52.38 kB / 0.6495 GB, free: 55.05 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/0.2278, allocations: 116.3 kB / 0.6496 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.493e-06/0.2278, allocations: 25.7 kB / 0.6496 GB, free: 54.92 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 2.715e-05/0.2279, allocations: 98.3 kB / 0.6497 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.2279, allocations: 12.69 kB / 0.6497 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.2279, allocations: 19.16 kB / 0.6497 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 2.81e-05/0.2279, allocations: 322.4 kB / 0.65 GB, free: 54.49 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.131e-05/0.228, allocations: 31.81 kB / 0.6501 GB, free: 54.49 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.89e-05/0.2281, allocations: 33.11 kB / 0.6501 GB, free: 54.49 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.2283, allocations: 78.84 kB / 0.6502 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2283, allocations: 1.062 kB / 0.6502 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001833/0.2284, allocations: 99.59 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2285, allocations: 8.781 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2285, allocations: 1.375 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2285, allocations: 0.6094 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.496e-05/0.2286, allocations: 20.23 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2286, allocations: 0.6875 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.02e-05/0.2286, allocations: 15.17 kB / 0.6503 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.2286, allocations: 1.469 kB / 0.6503 GB, free: 54.45 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 4.992e-05/0.2287, allocations: 118.9 kB / 0.6504 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.526e-05/0.2287, allocations: 7.031 kB / 0.6504 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.2289, allocations: 113.3 kB / 0.6505 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2289, allocations: 4.344 kB / 0.6505 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2289, allocations: 1 kB / 0.6505 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2289, allocations: 2.453 kB / 0.6505 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.229, allocations: 148 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.229, allocations: 1.375 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.621e-05/0.2291, allocations: 15.33 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2291, allocations: 3.25 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.2291, allocations: 0.6875 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2291, allocations: 0.8125 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2291, allocations: 2.531 kB / 0.6507 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.2293, allocations: 208.1 kB / 0.6509 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.745e-06/0.2293, allocations: 2.562 kB / 0.6509 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.2293, allocations: 0.8438 kB / 0.6509 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.092e-05/0.2294, allocations: 12.45 kB / 0.6509 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.2294, allocations: 11.42 kB / 0.6509 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.2294, allocations: 1.641 kB / 0.6509 GB, free: 54 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 2.613e-05/0.2294, allocations: 92.22 kB / 0.651 GB, free: 53.92 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.1e-08/0.2294, allocations: 3.469 kB / 0.651 GB, free: 53.92 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001545/0.2296, allocations: 15.7 kB / 0.651 GB, free: 53.92 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.000347/0.2299, allocations: 0.7323 MB / 0.6517 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002034/0.2301, allocations: 80.7 kB / 0.6518 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2301, allocations: 0 / 0.6518 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 7.444e-05/0.2302, allocations: 37.83 kB / 0.6519 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.2305, allocations: 14.66 kB / 0.6519 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009848/0.2315, allocations: 1.425 MB / 0.6533 GB, free: 52.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.555e-05/0.2315, allocations: 74.34 kB / 0.6533 GB, free: 52.03 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 4.039e-05/0.2316, allocations: 10.61 kB / 0.6533 GB, free: 52.03 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.2316, allocations: 18.14 kB / 0.6534 GB, free: 52.03 MB / 0.5573 GB Notification: Performance of SimCode: time 1.002e-06/0.2316, allocations: 0 / 0.6534 GB, free: 52.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01435/0.2459, allocations: 2.54 MB / 0.6558 GB, free: 51.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.586/6.832, allocations: 1.781 kB / 0.6558 GB, free: 51.18 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.430314716883004] Failed to read output from testmodel.py, exit status != 0: 6.907916435971856 6.919556461 6.691661194 Calling exit ...