Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.WaterDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck",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.007404/0.007404, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001814/0.001814, allocations: 197 kB / 16.67 MB, free: 5.973 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7444/0.7444, allocations: 132.2 MB / 422.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 62.72 kB / 0.5808 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1556, allocations: 80.2 MB / 0.6592 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.002342/0.158, allocations: 1.262 MB / 0.6604 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003645/0.1617, allocations: 3.263 MB / 0.6636 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.818e-05/0.1617, allocations: 0 / 0.6636 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.209e-05/0.1617, allocations: 7.922 kB / 0.6636 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.528e-05/0.1618, allocations: 3.984 kB / 0.6636 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.1623, allocations: 111.5 kB / 0.6637 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.223e-05/0.1624, allocations: 35.92 kB / 0.6637 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.523e-05/0.1625, allocations: 0 / 0.6637 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.811e-05/0.1625, allocations: 23.97 kB / 0.6637 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.347e-05/0.1626, allocations: 15.92 kB / 0.6638 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.1626, allocations: 4 kB / 0.6638 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002513/0.1629, allocations: 79.73 kB / 0.6638 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.711e-05/0.1629, allocations: 8 kB / 0.6639 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.1629, allocations: 11.92 kB / 0.6639 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.1631, allocations: 72.08 kB / 0.6639 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1631, allocations: 0 / 0.6639 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.1632, allocations: 4 kB / 0.6639 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.1632, allocations: 0 / 0.6639 GB, free: 9.035 MB / 0.4981 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.0003963/0.1636, allocations: 355.3 kB / 0.6643 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1636, allocations: 8.031 kB / 0.6643 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.947e-05/0.1637, allocations: 34.75 kB / 0.6643 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.917e-05/0.1638, allocations: 4.938 kB / 0.6643 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.1639, allocations: 168.3 kB / 0.6645 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.1639, allocations: 4.359 kB / 0.6645 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.1639, allocations: 16.3 kB / 0.6645 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.1641, allocations: 57.62 kB / 0.6646 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1641, allocations: 3.984 kB / 0.6646 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1641, allocations: 3.938 kB / 0.6646 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1641, allocations: 0 / 0.6646 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.131e-05/0.1642, allocations: 19.98 kB / 0.6646 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.1644, allocations: 169.6 kB / 0.6647 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.499e-05/0.1645, allocations: 50.48 kB / 0.6648 GB, free: 8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.59e-05/0.1645, allocations: 24.86 kB / 0.6648 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007048/0.1652, allocations: 0.591 MB / 0.6654 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.1653, allocations: 34.55 kB / 0.6654 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.1653, allocations: 0 / 0.6654 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005939/0.1659, allocations: 306.2 kB / 0.6657 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.1659, allocations: 51.41 kB / 0.6658 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.994e-05/0.166, allocations: 101.9 kB / 0.6659 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.166, allocations: 25.7 kB / 0.6659 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.498e-05/0.1661, allocations: 96.08 kB / 0.666 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.1661, allocations: 23.75 kB / 0.666 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.1661, allocations: 25.7 kB / 0.666 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.545e-05/0.1662, allocations: 322.8 kB / 0.6663 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.913e-05/0.1663, allocations: 19.98 kB / 0.6664 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.107e-05/0.1663, allocations: 52.05 kB / 0.6664 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.992e-05/0.1664, allocations: 77.11 kB / 0.6665 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1664, allocations: 0 / 0.6665 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001324/0.1666, allocations: 93.55 kB / 0.6666 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1666, allocations: 8 kB / 0.6666 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1666, allocations: 0 / 0.6666 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.1666, allocations: 4 kB / 0.6666 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.841e-05/0.1667, allocations: 23.92 kB / 0.6666 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1667, allocations: 0 / 0.6666 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.1668, allocations: 12.06 kB / 0.6666 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.1668, allocations: 8 kB / 0.6666 GB, free: 5.867 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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.322e-05/0.1669, allocations: 114.5 kB / 0.6667 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.1669, allocations: 3.953 kB / 0.6667 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.167, allocations: 11.97 kB / 0.6667 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.167, allocations: 0 / 0.6667 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.167, allocations: 448 / 0.6667 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.167, allocations: 7.922 kB / 0.6668 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.1672, allocations: 173.7 kB / 0.6669 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1672, allocations: 11.98 kB / 0.6669 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.249e-05/0.1673, allocations: 12 kB / 0.6669 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1673, allocations: 4 kB / 0.6669 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.1673, allocations: 0 / 0.6669 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1674, allocations: 0 / 0.6669 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1674, allocations: 3.938 kB / 0.6669 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.1675, allocations: 171.5 kB / 0.6671 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.1676, allocations: 89.09 kB / 0.6672 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.1676, allocations: 4 kB / 0.6672 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.1677, allocations: 4 kB / 0.6672 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.1677, allocations: 7.875 kB / 0.6672 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.1678, allocations: 8 kB / 0.6672 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.628e-05/0.1678, allocations: 83.27 kB / 0.6673 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1678, allocations: 0 / 0.6673 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002338/0.168, allocations: 8 kB / 0.6673 GB, free: 5.07 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,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 (7): * Single equations (assignments): 7 * 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.0003928/0.1684, allocations: 0.7089 MB / 0.668 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001147/0.1686, allocations: 48.31 kB / 0.668 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1686, allocations: 4 kB / 0.668 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.075e-05/0.1686, allocations: 15.92 kB / 0.6681 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.1689, allocations: 19.02 kB / 0.6681 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.1702, allocations: 1.512 MB / 0.6696 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.1705, allocations: 0.6846 MB / 0.6702 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.582e-05/0.1705, allocations: 7.938 kB / 0.6702 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.011e-05/0.1706, allocations: 23.36 kB / 0.6703 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1706, allocations: 0 / 0.6703 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.1889, allocations: 1.635 MB / 0.6719 GB, free: 352 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.617, allocations: 20.05 kB / 0.6719 GB, free: 336 kB / 0.4981 GB (rm -f IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck.fmu > IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe 2>&1)