Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_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.001744/0.001744, 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.002103/0.002103, allocations: 199.2 kB / 16.54 MB, free: 6.672 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.822/2.822, allocations: 469.4 MB / 0.742 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 62.66 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3275, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002852/0.3304, allocations: 1.256 MB / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1542/0.4846, allocations: 137.7 MB / 1.199 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.42e-05/0.4847, allocations: 0 / 1.199 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.641e-05/0.4848, allocations: 11.88 kB / 1.199 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.253e-05/0.4849, allocations: 7.938 kB / 1.199 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.4864, allocations: 454.4 kB / 1.2 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.087e-05/0.4865, allocations: 35.86 kB / 1.2 GB, free: 2.605 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.947e-05/0.4866, allocations: 8 kB / 1.2 GB, free: 2.598 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.379e-05/0.4866, allocations: 23.91 kB / 1.2 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.808e-05/0.4867, allocations: 19.97 kB / 1.2 GB, free: 2.555 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.4868, allocations: 4 kB / 1.2 GB, free: 2.551 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.4885, allocations: 0.8075 MB / 1.201 GB, free: 1.742 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.642e-05/0.4885, allocations: 11.92 kB / 1.201 GB, free: 1.73 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.753e-05/0.4886, allocations: 15.98 kB / 1.201 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007779/0.4893, allocations: 447.4 kB / 1.201 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4894, allocations: 0 / 1.201 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4894, allocations: 0 / 1.201 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.4894, allocations: 0 / 1.201 GB, free: 1.277 MB / 0.9512 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.0005951/0.49, allocations: 375.4 kB / 1.201 GB, free: 0.8633 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.49, allocations: 12.03 kB / 1.201 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.4901, allocations: 30.75 kB / 1.202 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.4903, allocations: 16.84 kB / 1.202 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.4904, allocations: 172.3 kB / 1.202 GB, free: 0.5898 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.4904, allocations: 4.375 kB / 1.202 GB, free: 0.5859 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.753e-05/0.4905, allocations: 15.88 kB / 1.202 GB, free: 0.5703 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.4906, allocations: 53.61 kB / 1.202 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.4906, allocations: 0 / 1.202 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.4907, allocations: 4 kB / 1.202 GB, free: 0.5078 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.4907, allocations: 8 kB / 1.202 GB, free: 0.5 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.917e-05/0.4907, allocations: 11.98 kB / 1.202 GB, free: 500 kB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001778/0.4909, allocations: 161.7 kB / 1.202 GB, free: 288 kB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.4911, allocations: 54.48 kB / 1.202 GB, free: 224 kB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.283e-05/0.4911, allocations: 20.8 kB / 1.202 GB, free: 200 kB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.5024, allocations: 3.174 MB / 1.205 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.5025, allocations: 30.56 kB / 1.205 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.185e-06/0.5025, allocations: 0 / 1.205 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.04289/0.5454, allocations: 14.86 MB / 1.22 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.5455, allocations: 51.41 kB / 1.22 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.059e-05/0.5455, allocations: 101.8 kB / 1.22 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.5456, allocations: 29.7 kB / 1.22 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.161e-05/0.5456, allocations: 80.14 kB / 1.22 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.323e-05/0.5457, allocations: 39.36 kB / 1.22 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.5457, allocations: 33.72 kB / 1.22 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.5458, allocations: 318.8 kB / 1.22 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.661e-05/0.5459, allocations: 20 kB / 1.22 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.291e-05/0.5459, allocations: 32.11 kB / 1.22 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.5461, allocations: 62.91 kB / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.5461, allocations: 0 / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002133/0.5463, allocations: 101.7 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.5463, allocations: 4 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.5463, allocations: 0 / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.5463, allocations: 0 / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.5465, allocations: 31.92 kB / 1.221 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.5465, allocations: 3.938 kB / 1.221 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.847e-05/0.5465, allocations: 4 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.5465, allocations: 12 kB / 1.221 GB, free: 12.91 MB / 0.9825 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 9.361e-05/0.5466, allocations: 117.8 kB / 1.221 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.557e-05/0.5467, allocations: 7.906 kB / 1.221 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.547, allocations: 125.4 kB / 1.221 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.547, allocations: 4 kB / 1.221 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.547, allocations: 0 / 1.221 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.547, allocations: 0 / 1.221 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.5471, allocations: 177.6 kB / 1.221 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5471, allocations: 0 / 1.221 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.5473, allocations: 27.98 kB / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.5473, allocations: 0 / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.5473, allocations: 4 kB / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.5473, allocations: 0 / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5473, allocations: 0 / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002954/0.5476, allocations: 168.8 kB / 1.221 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.881e-05/0.5477, allocations: 89.14 kB / 1.221 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.5477, allocations: 0 / 1.221 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.5479, allocations: 11.98 kB / 1.221 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.5479, allocations: 11.98 kB / 1.221 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.5479, allocations: 8 kB / 1.221 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.704e-05/0.548, allocations: 83.28 kB / 1.221 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.548, allocations: 0 / 1.221 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001746/0.5497, allocations: 0.5624 MB / 1.222 GB, free: 11.43 MB / 0.9825 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.003844/0.5536, allocations: 0.9468 MB / 1.223 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001835/0.5538, allocations: 75.91 kB / 1.223 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5538, allocations: 0 / 1.223 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.06e-05/0.5538, allocations: 39.92 kB / 1.223 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.554, allocations: 8 kB / 1.223 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.5564, allocations: 1.531 MB / 1.224 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.5566, allocations: 0.685 MB / 1.225 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001157/0.5567, allocations: 28.53 kB / 1.225 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.213e-05/0.5568, allocations: 23.44 kB / 1.225 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.5568, allocations: 0 / 1.225 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6167/1.174, allocations: 25.4 MB / 1.25 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.688/9.862, allocations: 11.72 kB / 1.25 GB, free: 183.7 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Media_Examples_SteamDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1)