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.004774/0.004774, allocations: 105.6 kB / 15.74 MB, free: 6.023 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.001171/0.001171, allocations: 192.6 kB / 16.67 MB, free: 5.938 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002234/0.002234, allocations: 284.8 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.946/0.946, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 95.83 kB / 0.6809 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3791, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamDerivativeCheck): time 0.002105/0.3812, allocations: 1.257 MB / 0.7671 GB, free: 2.57 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.1335/0.5147, allocations: 137.7 MB / 0.9016 GB, free: 8.305 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.422e-05/0.5148, allocations: 0 / 0.9016 GB, free: 8.305 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 1.681e-05/0.5149, allocations: 0 / 0.9016 GB, free: 8.305 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 5.115e-05/0.5149, allocations: 15.91 kB / 0.9016 GB, free: 8.289 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.5162, allocations: 474.1 kB / 0.9021 GB, free: 7.828 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 8.311e-05/0.5163, allocations: 39.86 kB / 0.9021 GB, free: 7.789 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.457e-05/0.5163, allocations: 4 kB / 0.9021 GB, free: 7.785 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 4.585e-05/0.5164, allocations: 23.91 kB / 0.9021 GB, free: 7.762 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 6.764e-05/0.5165, allocations: 19.92 kB / 0.9021 GB, free: 7.742 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.5165, allocations: 4 kB / 0.9022 GB, free: 7.738 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.5179, allocations: 0.8232 MB / 0.903 GB, free: 6.914 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.5179, allocations: 11.98 kB / 0.903 GB, free: 6.902 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.518, allocations: 11.92 kB / 0.903 GB, free: 6.891 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0005856/0.5186, allocations: 460.3 kB / 0.9034 GB, free: 6.445 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5186, allocations: 0 / 0.9034 GB, free: 6.445 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5186, allocations: 0 / 0.9034 GB, free: 6.445 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.5186, allocations: 4 kB / 0.9034 GB, free: 6.441 MB / 0.67 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.0004652/0.5191, allocations: 371.2 kB / 0.9038 GB, free: 6.031 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.5191, allocations: 12.03 kB / 0.9038 GB, free: 6.02 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.089e-05/0.5192, allocations: 30.75 kB / 0.9038 GB, free: 5.98 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.5193, allocations: 12.92 kB / 0.9038 GB, free: 5.969 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.062e-05/0.5194, allocations: 164.3 kB / 0.904 GB, free: 5.77 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.5195, allocations: 8.375 kB / 0.904 GB, free: 5.762 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.5195, allocations: 7.938 kB / 0.904 GB, free: 5.754 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.5196, allocations: 61.61 kB / 0.9041 GB, free: 5.688 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.5196, allocations: 0 / 0.9041 GB, free: 5.688 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.5197, allocations: 0 / 0.9041 GB, free: 5.688 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.5197, allocations: 0 / 0.9041 GB, free: 5.688 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.346e-05/0.5197, allocations: 23.92 kB / 0.9041 GB, free: 5.664 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.5199, allocations: 173.5 kB / 0.9042 GB, free: 5.445 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 9.771e-05/0.52, allocations: 50.5 kB / 0.9043 GB, free: 5.387 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.52, allocations: 20.84 kB / 0.9043 GB, free: 5.363 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01177/0.5318, allocations: 3.206 MB / 0.9074 GB, free: 2.062 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.5319, allocations: 38.5 kB / 0.9075 GB, free: 2.016 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.5319, allocations: 0 / 0.9075 GB, free: 2.016 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.04388/0.5758, allocations: 15 MB / 0.9221 GB, free: 2.863 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.5758, allocations: 55.41 kB / 0.9222 GB, free: 2.797 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.515e-05/0.5759, allocations: 89.86 kB / 0.9223 GB, free: 2.699 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.5759, allocations: 29.7 kB / 0.9223 GB, free: 2.664 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 2.449e-05/0.576, allocations: 84.14 kB / 0.9224 GB, free: 2.578 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.05e-05/0.576, allocations: 43.58 kB / 0.9224 GB, free: 2.535 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.793e-05/0.5761, allocations: 29.7 kB / 0.9224 GB, free: 2.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 9.195e-05/0.5762, allocations: 326.9 kB / 0.9228 GB, free: 2.172 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.606e-05/0.5762, allocations: 23.98 kB / 0.9228 GB, free: 2.148 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.282e-05/0.5763, allocations: 19.98 kB / 0.9228 GB, free: 2.129 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.5764, allocations: 64.8 kB / 0.9229 GB, free: 2.062 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5764, allocations: 0 / 0.9229 GB, free: 2.062 MB / 0.6856 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002163/0.5766, allocations: 104.3 kB / 0.923 GB, free: 1.957 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.5766, allocations: 4 kB / 0.923 GB, free: 1.953 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.5767, allocations: 7.984 kB / 0.923 GB, free: 1.945 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.5767, allocations: 0 / 0.923 GB, free: 1.945 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.5768, allocations: 31.98 kB / 0.923 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.5768, allocations: 240 / 0.923 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.689e-05/0.5768, allocations: 0 / 0.923 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.5769, allocations: 8 kB / 0.923 GB, free: 1.906 MB / 0.6856 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 7.586e-05/0.5769, allocations: 121.7 kB / 0.9231 GB, free: 1.777 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.577, allocations: 7.953 kB / 0.9231 GB, free: 1.77 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002593/0.5773, allocations: 125.5 kB / 0.9233 GB, free: 1.637 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5773, allocations: 4 kB / 0.9233 GB, free: 1.633 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.5773, allocations: 0 / 0.9233 GB, free: 1.633 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.5773, allocations: 0 / 0.9233 GB, free: 1.633 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.5775, allocations: 177.6 kB / 0.9234 GB, free: 1.41 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5775, allocations: 0 / 0.9234 GB, free: 1.41 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.5776, allocations: 31.92 kB / 0.9235 GB, free: 1.379 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.5776, allocations: 0 / 0.9235 GB, free: 1.379 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.5776, allocations: 0 / 0.9235 GB, free: 1.379 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.962e-06/0.5776, allocations: 11.97 kB / 0.9235 GB, free: 1.367 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5776, allocations: 4 kB / 0.9235 GB, free: 1.363 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.5779, allocations: 156.9 kB / 0.9236 GB, free: 1.191 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.578, allocations: 85.14 kB / 0.9237 GB, free: 1.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.578, allocations: 11.98 kB / 0.9237 GB, free: 1.078 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.5782, allocations: 8 kB / 0.9237 GB, free: 1.07 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.049e-05/0.5782, allocations: 15.92 kB / 0.9237 GB, free: 1.055 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.5782, allocations: 8 kB / 0.9237 GB, free: 1.047 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 2.781e-05/0.5783, allocations: 75.28 kB / 0.9238 GB, free: 0.9727 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5783, allocations: 0 / 0.9238 GB, free: 0.9727 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00161/0.5799, allocations: 0.5699 MB / 0.9244 GB, free: 412 kB / 0.6856 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.004018/0.5839, allocations: 0.9402 MB / 0.9253 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.00019/0.5841, allocations: 63.92 kB / 0.9254 GB, free: 15.37 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5841, allocations: 0 / 0.9254 GB, free: 15.37 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 6.906e-05/0.5842, allocations: 39.92 kB / 0.9254 GB, free: 15.33 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.5844, allocations: 4 kB / 0.9254 GB, free: 15.33 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.5866, allocations: 1.557 MB / 0.9269 GB, free: 13.69 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.5869, allocations: 0.6846 MB / 0.9276 GB, free: 12.98 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0001104/0.587, allocations: 28.47 kB / 0.9276 GB, free: 12.95 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.049e-05/0.587, allocations: 23.44 kB / 0.9276 GB, free: 12.93 MB / 0.7012 GB Notification: Performance of SimCode: time 3.71e-07/0.587, allocations: 0 / 0.9276 GB, free: 12.93 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04703/0.6341, allocations: 25.48 MB / 0.9525 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.56, allocations: 7.75 kB / 0.9525 GB, free: 3.531 MB / 0.7169 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)