Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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.Media.Examples.SteamDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.SteamDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamDerivativeCheck",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.001324/0.001324, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 192 kB / 16.53 MB, free: 6.391 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.293/2.293, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003886/0.003886, allocations: 289.7 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.277/1.277, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 101.4 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2118, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamDerivativeCheck): time 0.002713/0.2145, allocations: 1.257 MB / 0.6815 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5508/0.7654, allocations: 137.7 MB / 0.816 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.355e-05/0.7655, allocations: 0 / 0.816 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.497e-05/0.7655, allocations: 3.938 kB / 0.816 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.142e-05/0.7656, allocations: 11.42 kB / 0.816 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.7678, allocations: 459.9 kB / 0.8164 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.7679, allocations: 40.17 kB / 0.8165 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.792e-05/0.768, allocations: 6.938 kB / 0.8165 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.182e-05/0.7681, allocations: 20.52 kB / 0.8165 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.589e-05/0.7682, allocations: 18.58 kB / 0.8165 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.7682, allocations: 6.469 kB / 0.8165 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00245/0.7707, allocations: 0.8117 MB / 0.8173 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.7708, allocations: 8.047 kB / 0.8173 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.901e-05/0.7708, allocations: 22.27 kB / 0.8174 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000935/0.7718, allocations: 444.9 kB / 0.8178 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.7718, allocations: 0 / 0.8178 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.386e-06/0.7718, allocations: 0 / 0.8178 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.7718, allocations: 1.094 kB / 0.8178 GB, free: 2.234 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008344/0.7727, allocations: 365.1 kB / 0.8181 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.7727, allocations: 10.91 kB / 0.8181 GB, free: 17.87 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/0.7728, allocations: 35.95 kB / 0.8182 GB, free: 17.83 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.7731, allocations: 18.7 kB / 0.8182 GB, free: 17.83 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.7733, allocations: 165.5 kB / 0.8183 GB, free: 17.63 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.7733, allocations: 2.156 kB / 0.8183 GB, free: 17.63 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.7733, allocations: 11.88 kB / 0.8184 GB, free: 17.62 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.7736, allocations: 57.72 kB / 0.8184 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.7736, allocations: 0 / 0.8184 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.7736, allocations: 1.781 kB / 0.8184 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.7737, allocations: 7.219 kB / 0.8184 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.7738, allocations: 15.66 kB / 0.8184 GB, free: 17.59 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002189/0.774, allocations: 161.8 kB / 0.8186 GB, free: 17.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.7742, allocations: 52.8 kB / 0.8186 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.178e-05/0.7743, allocations: 19.95 kB / 0.8187 GB, free: 17.36 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02181/0.7961, allocations: 3.176 MB / 0.8218 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.238e-05/0.7962, allocations: 34.36 kB / 0.8218 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 4.308e-06/0.7962, allocations: 1.031 kB / 0.8218 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.06665/0.8629, allocations: 14.87 MB / 0.8363 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.863, allocations: 54.19 kB / 0.8364 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.356e-05/0.8631, allocations: 101.5 kB / 0.8365 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.8631, allocations: 27.8 kB / 0.8365 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.8632, allocations: 84.14 kB / 0.8366 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.747e-05/0.8632, allocations: 42.83 kB / 0.8366 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.55e-05/0.8633, allocations: 34.05 kB / 0.8366 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.8635, allocations: 318.6 kB / 0.8369 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.623e-05/0.8636, allocations: 23.64 kB / 0.837 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.02e-05/0.8637, allocations: 23.17 kB / 0.837 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/0.8639, allocations: 64.95 kB / 0.8371 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.8639, allocations: 0 / 0.8371 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003645/0.8642, allocations: 109.8 kB / 0.8372 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.8643, allocations: 4.844 kB / 0.8372 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.8643, allocations: 2.281 kB / 0.8372 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.8643, allocations: 6.438 kB / 0.8372 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.8645, allocations: 29.34 kB / 0.8372 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.8646, allocations: 2.625 kB / 0.8372 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.619e-05/0.8646, allocations: 0 / 0.8372 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.8646, allocations: 4.656 kB / 0.8372 GB, free: 12.42 MB / 0.5762 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 (14): * Single equations (assignments): 14 * 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.0001218/0.8648, allocations: 124.1 kB / 0.8373 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.751e-05/0.8649, allocations: 2.25 kB / 0.8373 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004028/0.8653, allocations: 136.5 kB / 0.8375 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.8653, allocations: 0 / 0.8375 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.8653, allocations: 4 kB / 0.8375 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.8653, allocations: 6.391 kB / 0.8375 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.8656, allocations: 177.5 kB / 0.8376 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.8656, allocations: 1.094 kB / 0.8376 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.8658, allocations: 19.88 kB / 0.8377 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.8658, allocations: 2.719 kB / 0.8377 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.8658, allocations: 7.672 kB / 0.8377 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.8659, allocations: 4.406 kB / 0.8377 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8659, allocations: 0 / 0.8377 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004549/0.8663, allocations: 157.2 kB / 0.8378 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.22e-05/0.8664, allocations: 91.53 kB / 0.8379 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.8665, allocations: 2.125 kB / 0.8379 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.8667, allocations: 11.19 kB / 0.8379 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.8667, allocations: 9.891 kB / 0.8379 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.8668, allocations: 8.156 kB / 0.8379 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.542e-05/0.8668, allocations: 79.28 kB / 0.838 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8668, allocations: 0 / 0.838 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002916/0.8698, allocations: 0.5654 MB / 0.8386 GB, free: 11.72 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hVapSym,cpSym,cvSym) * 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 (11): * Single equations (assignments): 11 * 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.007266/0.8771, allocations: 0.9326 MB / 0.8395 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000345/0.8774, allocations: 71.2 kB / 0.8395 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.8775, allocations: 6.281 kB / 0.8395 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.8776, allocations: 35.89 kB / 0.8396 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.878, allocations: 11.16 kB / 0.8396 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004362/0.8824, allocations: 1.544 MB / 0.8411 GB, free: 9.742 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.8828, allocations: 0.6828 MB / 0.8418 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002206/0.8831, allocations: 29.53 kB / 0.8418 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/0.8831, allocations: 19.09 kB / 0.8418 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/0.8832, allocations: 3.938 kB / 0.8418 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07647/0.9596, allocations: 25.44 MB / 0.8667 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.36, allocations: 11.92 kB / 0.8667 GB, free: 4.309 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_SteamDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamDerivativeCheck.pipe 2>&1)