Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",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.009229/0.009229, allocations: 103.8 kB / 15.73 MB, free: 6.004 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.002048/0.002048, allocations: 191.8 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04614/0.04614, allocations: 9.096 MB / 279 MB, free: 12.07 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 67.91 kB / 387 MB, free: 8.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2525, allocations: 48.16 MB / 435.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01411/0.2667, allocations: 12.83 MB / 448 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009886/0.2766, allocations: 8.57 MB / 456.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2767, allocations: 0 / 456.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.277, allocations: 51.08 kB / 456.6 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00603/0.283, allocations: 1.882 MB / 458.5 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006605/0.2896, allocations: 2.261 MB / 460.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.2899, allocations: 134 kB / 460.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.2899, allocations: 5.406 kB / 460.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.78e-05/0.29, allocations: 42.36 kB / 460.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.483e-05/0.2901, allocations: 50.05 kB / 461 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.2901, allocations: 3.438 kB / 461 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.3037, allocations: 6.924 MB / 467.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.428e-05/0.3038, allocations: 19.81 kB / 467.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.3039, allocations: 47.8 kB / 468 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009476/0.3134, allocations: 3.77 MB / 471.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.3134, allocations: 0 / 471.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3134, allocations: 0 / 471.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.3134, allocations: 0 / 471.7 MB, free: 12.15 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0028/0.3163, allocations: 0.8853 MB / 472.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3163, allocations: 8.031 kB / 472.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.888e-05/0.3164, allocations: 42.73 kB / 472.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003946/0.3168, allocations: 44.8 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.3171, allocations: 208.1 kB / 472.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.3172, allocations: 12.31 kB / 472.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.639e-05/0.3172, allocations: 8 kB / 472.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009612/0.3182, allocations: 259.2 kB / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3182, allocations: 0 / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.3182, allocations: 4 kB / 473.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3182, allocations: 4 kB / 473.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/0.319, allocations: 211.7 kB / 473.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000787/0.3198, allocations: 0.6662 MB / 474.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009007/0.3207, allocations: 244.9 kB / 474.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.347e-05/0.3208, allocations: 57.73 kB / 474.4 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1247/0.4456, allocations: 64.23 MB / 0.526 GB, free: 1.398 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.4457, allocations: 42.5 kB / 0.526 GB, free: 1.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.215e-06/0.4457, allocations: 0 / 0.526 GB, free: 1.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001832/0.4475, allocations: 369.1 kB / 0.5264 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.4476, allocations: 81.11 kB / 0.5264 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.4477, allocations: 130.1 kB / 0.5266 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-05/0.4478, allocations: 25.7 kB / 0.5266 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.449e-05/0.4478, allocations: 104 kB / 0.5267 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.4479, allocations: 47.2 kB / 0.5267 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.448, allocations: 61.67 kB / 0.5268 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4482, allocations: 314.8 kB / 0.5271 GB, free: 184 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.4483, allocations: 63.95 kB / 0.5271 GB, free: 120 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.4485, allocations: 88.48 kB / 0.5272 GB, free: 20 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.4488, allocations: 151.3 kB / 0.5274 GB, free: 15.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4488, allocations: 0 / 0.5274 GB, free: 15.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004844/0.4493, allocations: 214.1 kB / 0.5276 GB, free: 15.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.4493, allocations: 11.94 kB / 0.5276 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.4493, allocations: 3.938 kB / 0.5276 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.4493, allocations: 0 / 0.5276 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.4496, allocations: 51.95 kB / 0.5276 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.4496, allocations: 4.062 kB / 0.5277 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.4497, allocations: 19.78 kB / 0.5277 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.4498, allocations: 19.98 kB / 0.5277 GB, free: 15.54 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 0.0001127/0.4499, allocations: 121.8 kB / 0.5278 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.813e-05/0.45, allocations: 15.83 kB / 0.5278 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002131/0.4521, allocations: 2.104 MB / 0.5299 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.4522, allocations: 11.98 kB / 0.5299 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.4522, allocations: 0 / 0.5299 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4522, allocations: 4 kB / 0.5299 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.4533, allocations: 1.044 MB / 0.5309 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4533, allocations: 0 / 0.5309 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.4536, allocations: 35.95 kB / 0.5309 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.4536, allocations: 7.938 kB / 0.531 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.4536, allocations: 4 kB / 0.531 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4537, allocations: 0 / 0.531 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4537, allocations: 4 kB / 0.531 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008535/0.4545, allocations: 0.6449 MB / 0.5316 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.921e-05/0.4546, allocations: 96.88 kB / 0.5317 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.654e-05/0.4547, allocations: 11.94 kB / 0.5317 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.4548, allocations: 0 / 0.5317 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.4549, allocations: 11.98 kB / 0.5317 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.4549, allocations: 4 kB / 0.5317 GB, free: 11.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.937e-05/0.455, allocations: 103.3 kB / 0.5318 GB, free: 11.16 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.455, allocations: 0 / 0.5318 GB, free: 11.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002847/0.4578, allocations: 0.9057 MB / 0.5327 GB, free: 10.26 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.006249/0.4641, allocations: 2.19 MB / 0.5348 GB, free: 8.039 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004809/0.4646, allocations: 211.8 kB / 0.535 GB, free: 7.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.4646, allocations: 0 / 0.535 GB, free: 7.832 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.4649, allocations: 155.9 kB / 0.5352 GB, free: 7.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006855/0.4656, allocations: 76.53 kB / 0.5353 GB, free: 7.605 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004157/0.4697, allocations: 2.584 MB / 0.5378 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.47, allocations: 0.7367 MB / 0.5385 GB, free: 4.152 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004456/0.4705, allocations: 368.6 kB / 0.5388 GB, free: 3.793 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.4706, allocations: 79.39 kB / 0.5389 GB, free: 3.715 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4706, allocations: 4 kB / 0.5389 GB, free: 3.711 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06411/0.5348, allocations: 36.45 MB / 0.5745 GB, free: 15.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.66, allocations: 4.062 kB / 0.5745 GB, free: 15.23 MB / 478.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)