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.007109/0.007109, allocations: 100.5 kB / 15.73 MB, free: 6 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.001295/0.001295, allocations: 191.4 kB / 16.67 MB, free: 5.926 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7455/0.7455, allocations: 132.2 MB / 422.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 62.72 kB / 0.5808 GB, free: 1.133 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1646, allocations: 80.21 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.002394/0.167, allocations: 1.264 MB / 0.6604 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00368/0.1707, allocations: 3.267 MB / 0.6636 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.008e-05/0.1708, allocations: 0 / 0.6636 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.821e-05/0.1708, allocations: 3.938 kB / 0.6636 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.189e-05/0.1709, allocations: 3.984 kB / 0.6636 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.1715, allocations: 111.5 kB / 0.6637 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.1716, allocations: 35.92 kB / 0.6637 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.238e-05/0.1717, allocations: 3.984 kB / 0.6637 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.487e-05/0.1717, allocations: 23.92 kB / 0.6638 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.147e-05/0.1718, allocations: 15.92 kB / 0.6638 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.1718, allocations: 4 kB / 0.6638 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002401/0.172, allocations: 79.8 kB / 0.6638 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.92e-05/0.1721, allocations: 7.984 kB / 0.6639 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.978e-05/0.1721, allocations: 15.94 kB / 0.6639 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.1723, allocations: 70.66 kB / 0.6639 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1723, allocations: 0 / 0.6639 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1723, allocations: 0 / 0.6639 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.1723, allocations: 0 / 0.6639 GB, free: 9.125 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.0004116/0.1727, allocations: 348.4 kB / 0.6643 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.1728, allocations: 12.03 kB / 0.6643 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.593e-05/0.1728, allocations: 38.73 kB / 0.6643 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.1729, allocations: 12.78 kB / 0.6643 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1731, allocations: 164.3 kB / 0.6645 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.1731, allocations: 4.375 kB / 0.6645 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.1731, allocations: 8.375 kB / 0.6645 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.1732, allocations: 53.61 kB / 0.6646 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1733, allocations: 4 kB / 0.6646 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1733, allocations: 4 kB / 0.6646 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1733, allocations: 0 / 0.6646 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.234e-05/0.1733, allocations: 15.98 kB / 0.6646 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.1735, allocations: 169.6 kB / 0.6647 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.469e-05/0.1736, allocations: 54.5 kB / 0.6648 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.182e-05/0.1737, allocations: 24.84 kB / 0.6648 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006794/0.1743, allocations: 0.5907 MB / 0.6654 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1744, allocations: 34.56 kB / 0.6654 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.1744, allocations: 0 / 0.6654 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005512/0.1749, allocations: 306.5 kB / 0.6657 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.175, allocations: 55.34 kB / 0.6658 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.834e-05/0.1751, allocations: 105.8 kB / 0.6659 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.1751, allocations: 29.7 kB / 0.6659 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.1751, allocations: 88.05 kB / 0.666 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.1752, allocations: 27.55 kB / 0.666 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.1752, allocations: 25.72 kB / 0.666 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1753, allocations: 318.8 kB / 0.6663 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.169e-05/0.1754, allocations: 12 kB / 0.6663 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.424e-05/0.1754, allocations: 61.08 kB / 0.6664 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.323e-05/0.1755, allocations: 73.25 kB / 0.6665 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.1755, allocations: 0 / 0.6665 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001399/0.1757, allocations: 93.55 kB / 0.6666 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1757, allocations: 8 kB / 0.6666 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1757, allocations: 0 / 0.6666 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1757, allocations: 4 kB / 0.6666 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.997e-05/0.1758, allocations: 19.94 kB / 0.6666 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1758, allocations: 0 / 0.6666 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.096e-05/0.1758, allocations: 15.92 kB / 0.6666 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1759, allocations: 4 kB / 0.6666 GB, free: 5.965 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 7.026e-05/0.1759, allocations: 122.6 kB / 0.6667 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.176, allocations: 3.906 kB / 0.6667 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.158e-05/0.176, allocations: 11.97 kB / 0.6667 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.176, allocations: 0 / 0.6667 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.176, allocations: 0 / 0.6667 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-06/0.176, allocations: 3.938 kB / 0.6667 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.1762, allocations: 169.7 kB / 0.6669 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1762, allocations: 0 / 0.6669 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.08e-05/0.1763, allocations: 19.98 kB / 0.6669 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.1764, allocations: 8.438 kB / 0.6669 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1764, allocations: 0 / 0.6669 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1764, allocations: 0 / 0.6669 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.1764, allocations: 4 kB / 0.6669 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.1765, allocations: 175.4 kB / 0.6671 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.1766, allocations: 85.02 kB / 0.6672 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.1766, allocations: 0 / 0.6672 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1767, allocations: 12.03 kB / 0.6672 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.96e-05/0.1768, allocations: 7.938 kB / 0.6672 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.1768, allocations: 4 kB / 0.6672 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.813e-05/0.1768, allocations: 79.28 kB / 0.6673 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1768, allocations: 3.938 kB / 0.6673 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002355/0.1771, allocations: 12 kB / 0.6673 GB, free: 5.164 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.0004736/0.1776, allocations: 0.7089 MB / 0.668 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001202/0.1777, allocations: 39.95 kB / 0.668 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1777, allocations: 3.938 kB / 0.668 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.134e-05/0.1777, allocations: 16.23 kB / 0.6681 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.178, allocations: 7.938 kB / 0.6681 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.1795, allocations: 1.53 MB / 0.6696 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.1798, allocations: 0.6885 MB / 0.6702 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.207e-05/0.1798, allocations: 7.938 kB / 0.6702 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.528e-05/0.1799, allocations: 15.44 kB / 0.6703 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of SimCode: time 1.91e-07/0.1799, allocations: 0 / 0.6703 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.1971, allocations: 1.636 MB / 0.6718 GB, free: 452 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.29/7.487, allocations: 8.188 kB / 0.6719 GB, free: 448 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Media_Examples_WaterDerivativeCheck.fmu > IDEAS_IDEAS.Media.Examples.WaterDerivativeCheck.pipe 2>&1)