Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Media.Examples.SteamDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.SteamDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_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.001082/0.001082, allocations: 108 kB / 15.61 MB, free: 148 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.001121/0.001121, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9045/0.9045, allocations: 135.1 MB / 425.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001324, allocations: 60.12 kB / 0.5054 GB, free: 5.223 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1474, allocations: 80.93 MB / 0.5845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.SteamDerivativeCheck): time 0.00272/0.1502, allocations: 1.247 MB / 0.5857 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3888/0.539, allocations: 137.7 MB / 0.7202 GB, free: 8.184 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.254e-05/0.5391, allocations: 1.312 kB / 0.7202 GB, free: 8.184 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.5391, allocations: 5.531 kB / 0.7202 GB, free: 8.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.446e-05/0.5392, allocations: 9.938 kB / 0.7202 GB, free: 8.172 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.5406, allocations: 459.1 kB / 0.7206 GB, free: 8.016 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.749e-05/0.5406, allocations: 46.7 kB / 0.7207 GB, free: 7.996 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.5407, allocations: 2.609 kB / 0.7207 GB, free: 7.996 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.148e-05/0.5407, allocations: 18.66 kB / 0.7207 GB, free: 7.992 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.157e-05/0.5408, allocations: 18.88 kB / 0.7207 GB, free: 7.984 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.5408, allocations: 3.312 kB / 0.7207 GB, free: 7.984 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001549/0.5424, allocations: 0.8125 MB / 0.7215 GB, free: 7.789 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.892e-05/0.5424, allocations: 8.562 kB / 0.7215 GB, free: 7.785 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.5425, allocations: 20.75 kB / 0.7215 GB, free: 7.773 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006986/0.5432, allocations: 446.1 kB / 0.722 GB, free: 7.672 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.5432, allocations: 2 kB / 0.722 GB, free: 7.672 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5432, allocations: 0 / 0.722 GB, free: 7.672 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5e-06/0.5432, allocations: 0 / 0.722 GB, free: 7.672 MB / 0.545 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.0005029/0.5437, allocations: 366.9 kB / 0.7223 GB, free: 7.305 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.5437, allocations: 10.72 kB / 0.7223 GB, free: 7.305 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.5438, allocations: 41.27 kB / 0.7224 GB, free: 7.258 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.544, allocations: 12.92 kB / 0.7224 GB, free: 7.258 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.5441, allocations: 170.4 kB / 0.7225 GB, free: 7.055 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.258e-06/0.5441, allocations: 2.969 kB / 0.7225 GB, free: 7.055 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.5441, allocations: 13.08 kB / 0.7225 GB, free: 7.047 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.5443, allocations: 57.17 kB / 0.7226 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.5443, allocations: 0.6562 kB / 0.7226 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.5443, allocations: 1.281 kB / 0.7226 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.5443, allocations: 0 / 0.7226 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.583e-05/0.5444, allocations: 20.59 kB / 0.7226 GB, free: 7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001756/0.5446, allocations: 163.7 kB / 0.7228 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.5447, allocations: 62.78 kB / 0.7228 GB, free: 6.762 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.322e-05/0.5447, allocations: 22.03 kB / 0.7229 GB, free: 6.746 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.5562, allocations: 3.166 MB / 0.7259 GB, free: 5.984 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.5563, allocations: 35.59 kB / 0.726 GB, free: 5.941 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.5563, allocations: 0 / 0.726 GB, free: 5.941 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.04391/0.6002, allocations: 14.87 MB / 0.7405 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.6003, allocations: 51.41 kB / 0.7405 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.097e-05/0.6004, allocations: 97.8 kB / 0.7406 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.6004, allocations: 29.7 kB / 0.7407 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.6005, allocations: 80.27 kB / 0.7407 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/0.6005, allocations: 55.38 kB / 0.7408 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.6006, allocations: 29.7 kB / 0.7408 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.6007, allocations: 318.8 kB / 0.7411 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.61e-05/0.6008, allocations: 23.98 kB / 0.7412 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.313e-05/0.6008, allocations: 23.98 kB / 0.7412 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.6009, allocations: 57.48 kB / 0.7412 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.6009, allocations: 0 / 0.7412 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000215/0.6012, allocations: 110.3 kB / 0.7413 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.6012, allocations: 14.5 kB / 0.7414 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.6012, allocations: 0 / 0.7414 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.6012, allocations: 3.938 kB / 0.7414 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.6013, allocations: 29.36 kB / 0.7414 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.6014, allocations: 0 / 0.7414 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.775e-05/0.6014, allocations: 4 kB / 0.7414 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.6014, allocations: 4 kB / 0.7414 GB, free: 11.68 MB / 0.5606 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.971e-05/0.6015, allocations: 117.8 kB / 0.7415 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.134e-05/0.6015, allocations: 4 kB / 0.7415 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.6018, allocations: 127.5 kB / 0.7416 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.6018, allocations: 4 kB / 0.7416 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6018, allocations: 3.984 kB / 0.7416 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6018, allocations: 0 / 0.7416 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.602, allocations: 177.6 kB / 0.7418 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.602, allocations: 0 / 0.7418 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.6021, allocations: 27.98 kB / 0.7418 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.6021, allocations: 4.859 kB / 0.7418 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.6022, allocations: 4 kB / 0.7418 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.6022, allocations: 4.078 kB / 0.7418 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.6022, allocations: 3.984 kB / 0.7418 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.6025, allocations: 156.9 kB / 0.742 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-05/0.6025, allocations: 93 kB / 0.7421 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.6026, allocations: 0 / 0.7421 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.6027, allocations: 20.92 kB / 0.7421 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.6027, allocations: 4 kB / 0.7421 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.6028, allocations: 4 kB / 0.7421 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.537e-05/0.6028, allocations: 83.2 kB / 0.7422 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.6028, allocations: 0 / 0.7422 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002082/0.6049, allocations: 0.5663 MB / 0.7427 GB, free: 10.19 MB / 0.5606 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.003244/0.6081, allocations: 0.9402 MB / 0.7437 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001779/0.6083, allocations: 67.91 kB / 0.7437 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6083, allocations: 0 / 0.7437 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.193e-05/0.6084, allocations: 35.98 kB / 0.7438 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001797/0.6086, allocations: 8 kB / 0.7438 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.6107, allocations: 1.549 MB / 0.7453 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.6109, allocations: 0.6885 MB / 0.746 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.439e-05/0.611, allocations: 28.53 kB / 0.746 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.191e-05/0.6111, allocations: 15.44 kB / 0.746 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of SimCode: time 2.545e-06/0.6111, allocations: 0 / 0.746 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04921/0.6603, allocations: 25.38 MB / 0.7708 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.584, allocations: 7.938 kB / 0.7708 GB, free: 13.39 MB / 0.5919 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.SteamDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.SteamDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Media_Examples_SteamDerivativeCheck.fmu > IDEAS_dev_IDEAS.Media.Examples.SteamDerivativeCheck.pipe 2>&1)