Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.WaterDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IDEAS_dev_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.001137/0.001137, allocations: 108 kB / 15.61 MB, free: 152 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.001152/0.001152, allocations: 198.3 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9736/0.9736, allocations: 135.1 MB / 425.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 65.75 kB / 0.5054 GB, free: 5.254 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1632, allocations: 80.93 MB / 0.5845 GB, free: 4.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.002622/0.1659, allocations: 1.245 MB / 0.5857 GB, free: 3.227 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003794/0.1697, allocations: 3.273 MB / 0.5889 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.01e-05/0.1697, allocations: 4 kB / 0.5889 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.452e-05/0.1698, allocations: 0 / 0.5889 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.543e-05/0.1698, allocations: 3.938 kB / 0.5889 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005739/0.1704, allocations: 115.3 kB / 0.589 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.366e-05/0.1705, allocations: 35.84 kB / 0.589 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.729e-05/0.1705, allocations: 4 kB / 0.589 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.705e-05/0.1706, allocations: 15.98 kB / 0.589 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.902e-05/0.1707, allocations: 23.91 kB / 0.5891 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.1707, allocations: 0 / 0.5891 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002541/0.1709, allocations: 83.75 kB / 0.5891 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.795e-05/0.171, allocations: 7.984 kB / 0.5891 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.317e-05/0.171, allocations: 19.92 kB / 0.5892 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.1712, allocations: 64.08 kB / 0.5892 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1713, allocations: 0 / 0.5892 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.334e-06/0.1713, allocations: 4 kB / 0.5892 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.1713, allocations: 0 / 0.5892 GB, free: 15.56 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.0004476/0.1717, allocations: 351.5 kB / 0.5896 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.1718, allocations: 8.031 kB / 0.5896 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.932e-05/0.1718, allocations: 34.75 kB / 0.5896 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.91e-05/0.1719, allocations: 4.938 kB / 0.5896 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.172, allocations: 168.3 kB / 0.5898 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1721, allocations: 4.375 kB / 0.5898 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.1721, allocations: 4.375 kB / 0.5898 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.1722, allocations: 61.55 kB / 0.5898 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1723, allocations: 0 / 0.5898 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.1723, allocations: 4 kB / 0.5898 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1723, allocations: 4 kB / 0.5898 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.368e-05/0.1723, allocations: 15.98 kB / 0.5899 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001669/0.1725, allocations: 165.6 kB / 0.59 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.188e-05/0.1726, allocations: 54.55 kB / 0.5901 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.203e-05/0.1726, allocations: 20.8 kB / 0.5901 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006854/0.1733, allocations: 0.5987 MB / 0.5907 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.1734, allocations: 34.56 kB / 0.5907 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.1734, allocations: 0 / 0.5907 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005747/0.174, allocations: 298.1 kB / 0.591 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.174, allocations: 51.41 kB / 0.591 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.241e-05/0.1741, allocations: 109.8 kB / 0.5911 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.1741, allocations: 33.7 kB / 0.5912 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.1742, allocations: 87.98 kB / 0.5913 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.1742, allocations: 27.72 kB / 0.5913 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.1742, allocations: 29.7 kB / 0.5913 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.1743, allocations: 314.8 kB / 0.5916 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.634e-05/0.1744, allocations: 12.42 kB / 0.5916 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.273e-05/0.1744, allocations: 61.08 kB / 0.5917 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.123e-05/0.1745, allocations: 65.09 kB / 0.5918 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1745, allocations: 4 kB / 0.5918 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001394/0.1747, allocations: 105.5 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.1747, allocations: 4 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.1747, allocations: 4 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1747, allocations: 0 / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.477e-05/0.1748, allocations: 23.92 kB / 0.5919 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.1748, allocations: 4 kB / 0.5919 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.83e-05/0.1749, allocations: 3.938 kB / 0.5919 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-06/0.1749, allocations: 4 kB / 0.5919 GB, free: 12.41 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.637e-05/0.175, allocations: 121.9 kB / 0.592 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.175, allocations: 4 kB / 0.592 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/0.175, allocations: 11.95 kB / 0.592 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.175, allocations: 0 / 0.592 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1751, allocations: 0 / 0.592 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.1751, allocations: 3.938 kB / 0.592 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.1753, allocations: 173.7 kB / 0.5922 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1753, allocations: 0 / 0.5922 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.183e-05/0.1754, allocations: 19.94 kB / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1754, allocations: 0 / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-06/0.1754, allocations: 4 kB / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1754, allocations: 0 / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1755, allocations: 3.984 kB / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.1756, allocations: 171.4 kB / 0.5924 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.1757, allocations: 81.14 kB / 0.5925 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.1757, allocations: 8 kB / 0.5925 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1758, allocations: 0 / 0.5925 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/0.1758, allocations: 11.92 kB / 0.5925 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.1759, allocations: 4 kB / 0.5925 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.572e-05/0.1759, allocations: 87.59 kB / 0.5926 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1759, allocations: 0 / 0.5926 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002386/0.1761, allocations: 12 kB / 0.5926 GB, free: 11.61 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.0004152/0.1766, allocations: 0.7126 MB / 0.5933 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001242/0.1767, allocations: 51.91 kB / 0.5933 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1767, allocations: 0 / 0.5933 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.428e-05/0.1767, allocations: 15.98 kB / 0.5933 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.177, allocations: 11.94 kB / 0.5934 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.1785, allocations: 1.512 MB / 0.5948 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.1788, allocations: 0.6807 MB / 0.5955 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.896e-05/0.1788, allocations: 8 kB / 0.5955 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.1789, allocations: 19.42 kB / 0.5955 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of SimCode: time 5.1e-07/0.1789, allocations: 0 / 0.5955 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.1994, allocations: 1.613 MB / 0.5971 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/8.064, allocations: 11.98 kB / 0.5971 GB, free: 6.887 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck.fmu > IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe 2>&1)