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.002059/0.002059, allocations: 110.5 kB / 16.41 MB, free: 6.035 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.002315/0.002316, allocations: 194 kB / 17.34 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, 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.8222/0.8222, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002646/0.002646, allocations: 69.41 kB / 0.5735 GB, free: 27.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1968, allocations: 78.86 MB / 0.6506 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.003961/0.2008, allocations: 1.537 MB / 0.6521 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005074/0.2013, allocations: 110.3 kB / 0.6522 GB, free: 1.938 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.732e-05/0.2014, allocations: 4 kB / 0.6522 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.2015, allocations: 7.922 kB / 0.6522 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.919e-05/0.2016, allocations: 7.875 kB / 0.6522 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.2019, allocations: 31.95 kB / 0.6522 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.202, allocations: 63.77 kB / 0.6523 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.2022, allocations: 20 kB / 0.6523 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.614e-05/0.2023, allocations: 27.91 kB / 0.6523 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.001e-05/0.2024, allocations: 23.92 kB / 0.6523 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.2024, allocations: 4 kB / 0.6523 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.2025, allocations: 15.98 kB / 0.6524 GB, free: 1.734 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.566e-05/0.2026, allocations: 19.91 kB / 0.6524 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.194e-05/0.2026, allocations: 23.88 kB / 0.6524 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.2028, allocations: 60.02 kB / 0.6525 GB, free: 1.633 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2028, allocations: 0 / 0.6525 GB, free: 1.633 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2029, allocations: 0 / 0.6525 GB, free: 1.633 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2029, allocations: 4 kB / 0.6525 GB, free: 1.629 MB / 494.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.0007237/0.2036, allocations: 383.1 kB / 0.6528 GB, free: 1.203 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.2037, allocations: 8.031 kB / 0.6528 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.949e-05/0.2037, allocations: 38.75 kB / 0.6529 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.2038, allocations: 12.83 kB / 0.6529 GB, free: 1.137 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.204, allocations: 184.3 kB / 0.6531 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.2041, allocations: 4.375 kB / 0.6531 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.366e-05/0.2041, allocations: 384 / 0.6531 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004006/0.2045, allocations: 90.19 kB / 0.6531 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2045, allocations: 3.938 kB / 0.6531 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.2045, allocations: 0 / 0.6531 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2045, allocations: 0 / 0.6531 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004822/0.205, allocations: 87.86 kB / 0.6532 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007366/0.2058, allocations: 324.7 kB / 0.6535 GB, free: 372 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.2061, allocations: 66.56 kB / 0.6536 GB, free: 296 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.2064, allocations: 40.91 kB / 0.6536 GB, free: 252 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.2064, allocations: 4 kB / 0.6536 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.2065, allocations: 30.56 kB / 0.6537 GB, free: 208 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 4.688e-06/0.2065, allocations: 3.984 kB / 0.6537 GB, free: 204 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008435/0.2074, allocations: 141.5 kB / 0.6538 GB, free: 56 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.2075, allocations: 59.34 kB / 0.6539 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.2076, allocations: 117.8 kB / 0.654 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.2076, allocations: 25.7 kB / 0.654 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.13e-05/0.2077, allocations: 92.09 kB / 0.6541 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.2078, allocations: 15.94 kB / 0.6541 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/0.2078, allocations: 13.72 kB / 0.6541 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001803/0.208, allocations: 322.7 kB / 0.6544 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.2082, allocations: 35.95 kB / 0.6545 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.2085, allocations: 31.97 kB / 0.6545 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.2089, allocations: 76.77 kB / 0.6546 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2089, allocations: 0 / 0.6546 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005208/0.2094, allocations: 109.5 kB / 0.6547 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2095, allocations: 4 kB / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2095, allocations: 4 kB / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2095, allocations: 4 kB / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.2097, allocations: 19.97 kB / 0.6547 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2097, allocations: 0 / 0.6547 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.2098, allocations: 15.92 kB / 0.6547 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.2099, allocations: 0 / 0.6547 GB, free: 15.07 MB / 0.4981 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 0.0001199/0.21, allocations: 117.8 kB / 0.6548 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.589e-05/0.2101, allocations: 8 kB / 0.6548 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005967/0.2107, allocations: 109.5 kB / 0.6549 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.2107, allocations: 4 kB / 0.655 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2107, allocations: 3.938 kB / 0.655 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2107, allocations: 0 / 0.655 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.211, allocations: 181.5 kB / 0.6551 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.211, allocations: 0 / 0.6551 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.2112, allocations: 19.98 kB / 0.6551 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.2112, allocations: 3.984 kB / 0.6552 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.2112, allocations: 4 kB / 0.6552 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2112, allocations: 0 / 0.6552 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2113, allocations: 0 / 0.6552 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005708/0.2118, allocations: 199.4 kB / 0.6553 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.206e-05/0.2119, allocations: 89.06 kB / 0.6554 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.2119, allocations: 0 / 0.6554 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.2121, allocations: 7.984 kB / 0.6554 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.2121, allocations: 4.422 kB / 0.6554 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.2122, allocations: 3.984 kB / 0.6554 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.035e-05/0.2122, allocations: 87.28 kB / 0.6555 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2123, allocations: 11.88 kB / 0.6555 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003701/0.2126, allocations: 15.94 kB / 0.6556 GB, free: 14.11 MB / 0.4981 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.0009649/0.2136, allocations: 0.7436 MB / 0.6563 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004766/0.2141, allocations: 75.92 kB / 0.6564 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2141, allocations: 0 / 0.6564 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.2143, allocations: 43.89 kB / 0.6564 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.2148, allocations: 5.875 kB / 0.6564 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.2168, allocations: 1.439 MB / 0.6578 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.2171, allocations: 0.6885 MB / 0.6585 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.621e-05/0.2172, allocations: 11.98 kB / 0.6585 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.672e-05/0.2172, allocations: 19.44 kB / 0.6585 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.2173, allocations: 0 / 0.6585 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02069/0.2379, allocations: 1.808 MB / 0.6603 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.954/8.192, allocations: 8.875 kB / 0.6603 GB, free: 9.219 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)