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.007019/0.007019, allocations: 101.7 kB / 15.73 MB, free: 6.449 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.001832/0.001832, allocations: 194.1 kB / 16.68 MB, free: 6.352 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.468/1.468, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04993/0.04993, allocations: 9.108 MB / 279 MB, free: 12.04 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.00209/0.00209, allocations: 71.84 kB / 387 MB, free: 8.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2808, allocations: 48.17 MB / 435.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01768/0.2986, allocations: 12.82 MB / 448 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.3104, allocations: 8.581 MB / 456.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.3106, allocations: 0 / 456.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.3109, allocations: 46.58 kB / 456.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006938/0.3179, allocations: 1.879 MB / 458.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007868/0.3257, allocations: 2.261 MB / 460.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002572/0.326, allocations: 134.3 kB / 460.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.187e-05/0.3261, allocations: 8.312 kB / 460.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.507e-05/0.3262, allocations: 36.14 kB / 460.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.3263, allocations: 53.39 kB / 461 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.3263, allocations: 3.219 kB / 461 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01601/0.3423, allocations: 6.919 MB / 467.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.3424, allocations: 15.92 kB / 467.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.3426, allocations: 51.73 kB / 468 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.355, allocations: 3.781 MB / 471.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3551, allocations: 0 / 471.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.38e-06/0.3551, allocations: 3.984 kB / 471.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3551, allocations: 4 kB / 471.7 MB, free: 12.12 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.002802/0.3579, allocations: 0.89 MB / 472.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.358, allocations: 12.03 kB / 472.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.9e-05/0.3581, allocations: 42.73 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003882/0.3585, allocations: 52.8 kB / 472.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.3587, allocations: 204.2 kB / 472.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.3588, allocations: 8.312 kB / 472.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.341e-05/0.3588, allocations: 15.95 kB / 473 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008913/0.3597, allocations: 263.1 kB / 473.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3597, allocations: 7.984 kB / 473.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.3598, allocations: 0 / 473.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.3598, allocations: 0 / 473.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/0.3605, allocations: 215.7 kB / 473.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008606/0.3614, allocations: 0.6663 MB / 474.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008836/0.3623, allocations: 241 kB / 474.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.547e-05/0.3624, allocations: 53.73 kB / 474.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1408/0.5032, allocations: 64.24 MB / 0.526 GB, free: 1.355 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.484e-05/0.5033, allocations: 38.56 kB / 0.526 GB, free: 1.309 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.875e-06/0.5033, allocations: 0 / 0.526 GB, free: 1.309 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001711/0.505, allocations: 373.2 kB / 0.5264 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.5051, allocations: 77.11 kB / 0.5265 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.5053, allocations: 134.1 kB / 0.5266 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.5053, allocations: 25.7 kB / 0.5266 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.336e-05/0.5054, allocations: 104 kB / 0.5267 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.665e-05/0.5054, allocations: 51.59 kB / 0.5268 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.5055, allocations: 61.62 kB / 0.5268 GB, free: 460 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.5057, allocations: 318.8 kB / 0.5271 GB, free: 132 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.5058, allocations: 59.89 kB / 0.5272 GB, free: 72 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.506, allocations: 92.39 kB / 0.5273 GB, free: 15.97 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.5064, allocations: 152 kB / 0.5274 GB, free: 15.81 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5064, allocations: 0 / 0.5274 GB, free: 15.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004963/0.5069, allocations: 217.5 kB / 0.5276 GB, free: 15.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.5069, allocations: 11.88 kB / 0.5276 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.507, allocations: 0 / 0.5276 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.507, allocations: 4 kB / 0.5276 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.5072, allocations: 59.88 kB / 0.5277 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.5072, allocations: 8.062 kB / 0.5277 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.5074, allocations: 15.89 kB / 0.5277 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.5074, allocations: 15.98 kB / 0.5277 GB, free: 15.48 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.0001182/0.5075, allocations: 113.8 kB / 0.5278 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.054e-05/0.5076, allocations: 19.88 kB / 0.5279 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002394/0.51, allocations: 2.1 MB / 0.5299 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.5101, allocations: 7.984 kB / 0.5299 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5101, allocations: 0 / 0.5299 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.5101, allocations: 7.938 kB / 0.5299 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.5112, allocations: 1.052 MB / 0.531 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.5112, allocations: 4 kB / 0.531 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.5114, allocations: 39.89 kB / 0.531 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.5114, allocations: 3.938 kB / 0.531 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.5114, allocations: 4 kB / 0.531 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.5115, allocations: 4 kB / 0.531 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5115, allocations: 0 / 0.531 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007817/0.5122, allocations: 0.6412 MB / 0.5316 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.5123, allocations: 112.8 kB / 0.5317 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.5124, allocations: 7.938 kB / 0.5318 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.5125, allocations: 4 kB / 0.5318 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.5126, allocations: 7.984 kB / 0.5318 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.5126, allocations: 8 kB / 0.5318 GB, free: 11.19 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.855e-05/0.5127, allocations: 99.77 kB / 0.5319 GB, free: 11.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5127, allocations: 0 / 0.5319 GB, free: 11.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002779/0.5155, allocations: 0.9162 MB / 0.5328 GB, free: 10.18 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.005651/0.5211, allocations: 2.192 MB / 0.5349 GB, free: 7.953 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004977/0.5216, allocations: 215.8 kB / 0.5351 GB, free: 7.742 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5217, allocations: 0 / 0.5351 GB, free: 7.742 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.5219, allocations: 155.9 kB / 0.5353 GB, free: 7.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000691/0.5226, allocations: 72.19 kB / 0.5353 GB, free: 7.523 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.5268, allocations: 2.59 MB / 0.5379 GB, free: 4.828 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.5272, allocations: 0.7406 MB / 0.5386 GB, free: 4.059 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005064/0.5277, allocations: 372.6 kB / 0.5389 GB, free: 3.695 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.5279, allocations: 71.39 kB / 0.539 GB, free: 3.625 MB / 430.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5279, allocations: 4 kB / 0.539 GB, free: 3.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08296/0.6109, allocations: 36.34 MB / 0.5745 GB, free: 15.25 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/11.07, allocations: 4.062 kB / 0.5745 GB, free: 15.25 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0004 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)