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.001478/0.001478, allocations: 108 kB / 15.6 MB, free: 132 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.001721/0.001721, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7413/0.7413, allocations: 132.2 MB / 422.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002433/0.002433, allocations: 68.64 kB / 0.5019 GB, free: 3.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.4283, allocations: 80.2 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.002272/0.4307, allocations: 1.26 MB / 0.5814 GB, free: 3.668 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003309/0.434, allocations: 3.252 MB / 0.5846 GB, free: 1.297 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.903e-05/0.434, allocations: 3.938 kB / 0.5846 GB, free: 1.293 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.4341, allocations: 1.719 kB / 0.5846 GB, free: 1.293 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.014e-05/0.4341, allocations: 9.672 kB / 0.5846 GB, free: 1.285 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.4346, allocations: 112.5 kB / 0.5847 GB, free: 1.223 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.951e-05/0.4347, allocations: 38.45 kB / 0.5847 GB, free: 1.207 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.934e-05/0.4348, allocations: 3.109 kB / 0.5847 GB, free: 1.207 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.318e-05/0.4348, allocations: 21.22 kB / 0.5848 GB, free: 1.199 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.357e-05/0.4349, allocations: 12.17 kB / 0.5848 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.4349, allocations: 1.875 kB / 0.5848 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.4351, allocations: 81.12 kB / 0.5849 GB, free: 1.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.4351, allocations: 4.156 kB / 0.5849 GB, free: 1.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.077e-05/0.4352, allocations: 16.06 kB / 0.5849 GB, free: 1.152 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.4354, allocations: 75.14 kB / 0.5849 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4354, allocations: 4.812 kB / 0.585 GB, free: 1.121 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4354, allocations: 0 / 0.585 GB, free: 1.121 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.4354, allocations: 0.7188 kB / 0.585 GB, free: 1.121 MB / 430.1 MB 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.0003417/0.4357, allocations: 351.1 kB / 0.5853 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4358, allocations: 9.656 kB / 0.5853 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.956e-05/0.4358, allocations: 32.89 kB / 0.5853 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.277e-05/0.4359, allocations: 5.109 kB / 0.5853 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.987e-05/0.436, allocations: 163.5 kB / 0.5855 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.436, allocations: 10.31 kB / 0.5855 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.4361, allocations: 7.25 kB / 0.5855 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.4362, allocations: 62.86 kB / 0.5856 GB, free: 472 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.4362, allocations: 3.938 kB / 0.5856 GB, free: 468 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.4362, allocations: 0 / 0.5856 GB, free: 468 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.4362, allocations: 1.281 kB / 0.5856 GB, free: 468 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.875e-05/0.4363, allocations: 20.77 kB / 0.5856 GB, free: 464 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.4364, allocations: 162.1 kB / 0.5857 GB, free: 264 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.742e-05/0.4365, allocations: 53.62 kB / 0.5858 GB, free: 228 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.231e-05/0.4366, allocations: 18.41 kB / 0.5858 GB, free: 216 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006974/0.4373, allocations: 0.5996 MB / 0.5864 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.4373, allocations: 31.55 kB / 0.5864 GB, free: 15.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.4373, allocations: 0 / 0.5864 GB, free: 15.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006203/0.4379, allocations: 304.2 kB / 0.5867 GB, free: 15.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.438, allocations: 53.36 kB / 0.5868 GB, free: 15.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.052e-05/0.4381, allocations: 103.8 kB / 0.5869 GB, free: 15.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.4381, allocations: 26.45 kB / 0.5869 GB, free: 15.04 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.4382, allocations: 87.28 kB / 0.587 GB, free: 14.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.4382, allocations: 25.38 kB / 0.587 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.4382, allocations: 26.42 kB / 0.587 GB, free: 14.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4384, allocations: 325.4 kB / 0.5873 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.201e-05/0.4384, allocations: 11.03 kB / 0.5874 GB, free: 14.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.06e-05/0.4385, allocations: 60.19 kB / 0.5874 GB, free: 14.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.4386, allocations: 72.44 kB / 0.5875 GB, free: 14.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4386, allocations: 1.641 kB / 0.5875 GB, free: 14.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001555/0.4388, allocations: 98.12 kB / 0.5876 GB, free: 14.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.4388, allocations: 5.5 kB / 0.5876 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.4388, allocations: 1.812 kB / 0.5876 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.4388, allocations: 1.625 kB / 0.5876 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.57e-05/0.4389, allocations: 23.66 kB / 0.5876 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.4389, allocations: 6.609 kB / 0.5876 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.949e-05/0.439, allocations: 6.438 kB / 0.5876 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.439, allocations: 3.781 kB / 0.5876 GB, free: 14.39 MB / 446.1 MB 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.104e-05/0.4391, allocations: 115.4 kB / 0.5877 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.4391, allocations: 2.875 kB / 0.5877 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.4391, allocations: 9.75 kB / 0.5877 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4392, allocations: 5.172 kB / 0.5877 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4392, allocations: 0.6562 kB / 0.5877 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4392, allocations: 11.88 kB / 0.5878 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/0.4394, allocations: 173.6 kB / 0.5879 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4394, allocations: 1.25 kB / 0.5879 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/0.4395, allocations: 14.64 kB / 0.5879 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4395, allocations: 1.25 kB / 0.5879 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.4395, allocations: 1.484 kB / 0.5879 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4395, allocations: 3.938 kB / 0.5879 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.4395, allocations: 1 kB / 0.5879 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.4397, allocations: 184.4 kB / 0.5881 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.4398, allocations: 81.86 kB / 0.5882 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.4398, allocations: 4.594 kB / 0.5882 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.44, allocations: 4 kB / 0.5882 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.012e-05/0.44, allocations: 7.766 kB / 0.5882 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.44, allocations: 2.094 kB / 0.5882 GB, free: 13.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.521e-05/0.44, allocations: 83.42 kB / 0.5883 GB, free: 13.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.44, allocations: 0 / 0.5883 GB, free: 13.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.4403, allocations: 9.906 kB / 0.5883 GB, free: 13.71 MB / 446.1 MB 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.0004209/0.4407, allocations: 0.7223 MB / 0.589 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000129/0.4408, allocations: 44.05 kB / 0.5891 GB, free: 13.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4409, allocations: 0.625 kB / 0.5891 GB, free: 13.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.783e-05/0.4409, allocations: 21.5 kB / 0.5891 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.4412, allocations: 14.14 kB / 0.5891 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.4426, allocations: 1.527 MB / 0.5906 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.4429, allocations: 0.6825 MB / 0.5912 GB, free: 10.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.579e-05/0.443, allocations: 9.047 kB / 0.5913 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.443, allocations: 15.67 kB / 0.5913 GB, free: 10.84 MB / 446.1 MB Notification: Performance of SimCode: time 2.61e-07/0.443, allocations: 0 / 0.5913 GB, free: 10.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01809/0.4611, allocations: 1.602 MB / 0.5928 GB, free: 10.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.242/7.703, allocations: 7.344 kB / 0.5928 GB, free: 10.46 MB / 446.1 MB (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)