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.007099/0.007099, allocations: 102.6 kB / 15.73 MB, free: 5.902 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.001726/0.001726, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7507/0.7507, allocations: 132.2 MB / 422.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 66.31 kB / 0.5808 GB, free: 1.113 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1762, allocations: 80.21 MB / 0.6592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.002567/0.1788, allocations: 1.254 MB / 0.6604 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003814/0.1826, allocations: 3.259 MB / 0.6636 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.78e-05/0.1827, allocations: 4 kB / 0.6636 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.098e-05/0.1827, allocations: 3.938 kB / 0.6636 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.052e-05/0.1828, allocations: 7.922 kB / 0.6636 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005446/0.1834, allocations: 106.6 kB / 0.6637 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.725e-05/0.1834, allocations: 35.92 kB / 0.6637 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.64e-05/0.1835, allocations: 3.984 kB / 0.6637 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.032e-05/0.1836, allocations: 23.94 kB / 0.6637 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.072e-05/0.1836, allocations: 19.84 kB / 0.6638 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.1836, allocations: 4 kB / 0.6638 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002409/0.1839, allocations: 79.8 kB / 0.6638 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.1839, allocations: 11.98 kB / 0.6639 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.184, allocations: 11.94 kB / 0.6639 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001892/0.1841, allocations: 70.67 kB / 0.6639 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1842, allocations: 3.984 kB / 0.6639 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1842, allocations: 0 / 0.6639 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.1842, allocations: 0 / 0.6639 GB, free: 9.105 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.0004014/0.1846, allocations: 348.4 kB / 0.6643 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1846, allocations: 8.031 kB / 0.6643 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.87e-05/0.1847, allocations: 34.75 kB / 0.6643 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.901e-05/0.1848, allocations: 12.83 kB / 0.6643 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.1849, allocations: 168.3 kB / 0.6645 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-06/0.1849, allocations: 384 / 0.6645 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.1849, allocations: 8.375 kB / 0.6645 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.1851, allocations: 57.55 kB / 0.6645 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1851, allocations: 4 kB / 0.6645 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.1851, allocations: 4 kB / 0.6646 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.1851, allocations: 4 kB / 0.6646 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.861e-05/0.1852, allocations: 11.98 kB / 0.6646 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001798/0.1854, allocations: 169.6 kB / 0.6647 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.2e-05/0.1855, allocations: 54.5 kB / 0.6648 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.514e-05/0.1855, allocations: 24.83 kB / 0.6648 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007197/0.1862, allocations: 0.5907 MB / 0.6654 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.1863, allocations: 38.56 kB / 0.6654 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.343e-06/0.1863, allocations: 0 / 0.6654 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0006417/0.1869, allocations: 306.5 kB / 0.6657 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.187, allocations: 55.41 kB / 0.6658 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.554e-05/0.1871, allocations: 105.8 kB / 0.6659 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.1871, allocations: 25.7 kB / 0.6659 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.1872, allocations: 88.05 kB / 0.666 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.1872, allocations: 31.55 kB / 0.666 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.1872, allocations: 21.72 kB / 0.666 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1874, allocations: 318.8 kB / 0.6663 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.437e-05/0.1874, allocations: 12 kB / 0.6663 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.746e-05/0.1875, allocations: 57.14 kB / 0.6664 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.968e-05/0.1876, allocations: 69.08 kB / 0.6665 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1876, allocations: 4 kB / 0.6665 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001448/0.1877, allocations: 97.72 kB / 0.6666 GB, free: 6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1878, allocations: 7.984 kB / 0.6666 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1878, allocations: 3.938 kB / 0.6666 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1878, allocations: 7.938 kB / 0.6666 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.962e-05/0.1879, allocations: 20 kB / 0.6666 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1879, allocations: 4 kB / 0.6666 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.977e-05/0.1879, allocations: 3.938 kB / 0.6666 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.1879, allocations: 4.125 kB / 0.6666 GB, free: 5.949 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 8.722e-05/0.188, allocations: 126.4 kB / 0.6667 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.1881, allocations: 7.906 kB / 0.6667 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.419e-05/0.1881, allocations: 7.969 kB / 0.6667 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1881, allocations: 0 / 0.6667 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1881, allocations: 0 / 0.6667 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1882, allocations: 3.938 kB / 0.6667 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00024/0.1884, allocations: 173.7 kB / 0.6669 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1884, allocations: 0 / 0.6669 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.031e-05/0.1885, allocations: 19.98 kB / 0.6669 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1885, allocations: 4 kB / 0.6669 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1885, allocations: 0 / 0.6669 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1885, allocations: 0 / 0.6669 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1885, allocations: 448 / 0.6669 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.1887, allocations: 175.4 kB / 0.6671 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.1888, allocations: 85.05 kB / 0.6672 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.1888, allocations: 0 / 0.6672 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.1889, allocations: 12 kB / 0.6672 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.623e-05/0.189, allocations: 15.92 kB / 0.6672 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.189, allocations: 0 / 0.6672 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.675e-05/0.189, allocations: 79.28 kB / 0.6673 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.189, allocations: 0 / 0.6673 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002436/0.1893, allocations: 12 kB / 0.6673 GB, free: 5.148 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.0004575/0.1897, allocations: 0.7046 MB / 0.668 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001279/0.1899, allocations: 43.95 kB / 0.668 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1899, allocations: 0 / 0.668 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.365e-05/0.1899, allocations: 15.98 kB / 0.668 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.1902, allocations: 11.94 kB / 0.6681 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.1916, allocations: 1.528 MB / 0.6695 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.1919, allocations: 0.6885 MB / 0.6702 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.053e-05/0.1919, allocations: 4 kB / 0.6702 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.586e-05/0.192, allocations: 15.44 kB / 0.6702 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of SimCode: time 8.01e-07/0.192, allocations: 4 kB / 0.6702 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.2104, allocations: 1.658 MB / 0.6719 GB, free: 420 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/7.641, allocations: 12.12 kB / 0.6719 GB, free: 412 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)