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.001288/0.001288, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.009283/0.009284, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.793/1.793, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05013/0.05013, allocations: 9.065 MB / 279.8 MB, free: 12.14 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.0005254/0.0005254, allocations: 12.38 kB / 339.8 MB, free: 25.53 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1195, allocations: 49.19 MB / 389 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01683/0.1363, allocations: 13.16 MB / 402.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.1477, allocations: 9.157 MB / 411.3 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.849e-05/0.1479, allocations: 4 kB / 411.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.1481, allocations: 39.77 kB / 411.4 MB, free: 1.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005196/0.1533, allocations: 1.452 MB / 412.8 MB, free: 412 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007252/0.1606, allocations: 1.8 MB / 414.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.1608, allocations: 127.1 kB / 414.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.653e-05/0.1609, allocations: 4 kB / 414.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.724e-05/0.161, allocations: 43.84 kB / 414.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.1611, allocations: 51.72 kB / 414.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1611, allocations: 4 kB / 414.9 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01308/0.1742, allocations: 6.844 MB / 421.7 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.91e-05/0.1743, allocations: 15.92 kB / 421.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1744, allocations: 81.44 kB / 421.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00986/0.1843, allocations: 3.766 MB / 425.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1843, allocations: 0 / 425.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1843, allocations: 0 / 425.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1843, allocations: 0 / 425.6 MB, free: 3.645 MB / 318.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.003231/0.1875, allocations: 0.858 MB / 426.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.1876, allocations: 12.03 kB / 426.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.41e-05/0.1877, allocations: 46.73 kB / 426.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00041/0.1881, allocations: 44.8 kB / 426.5 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.1884, allocations: 212.1 kB / 426.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.1884, allocations: 12.31 kB / 426.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.1885, allocations: 15.94 kB / 426.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009032/0.1894, allocations: 263.1 kB / 427 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1894, allocations: 0 / 427 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.1895, allocations: 0 / 427 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.1895, allocations: 4 kB / 427 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007435/0.1902, allocations: 215.7 kB / 427.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007488/0.191, allocations: 0.6662 MB / 427.9 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008433/0.1918, allocations: 245 kB / 428.1 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.173e-05/0.1919, allocations: 53.73 kB / 428.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3528/0.5447, allocations: 64.57 MB / 492.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.5448, allocations: 34.55 kB / 492.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 6.582e-06/0.5449, allocations: 5.172 kB / 492.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001724/0.5466, allocations: 376.4 kB / 493.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.5466, allocations: 83.36 kB / 493.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.5468, allocations: 126.1 kB / 493.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.5468, allocations: 29.7 kB / 493.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.5469, allocations: 93.3 kB / 493.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.547, allocations: 51.89 kB / 493.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.547, allocations: 25.7 kB / 493.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.504e-05/0.5471, allocations: 322.8 kB / 493.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.5472, allocations: 55.97 kB / 493.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.5474, allocations: 87.39 kB / 494 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.5477, allocations: 153.2 kB / 494.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5477, allocations: 4 kB / 494.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004219/0.5481, allocations: 216.3 kB / 494.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.5481, allocations: 8 kB / 494.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.5481, allocations: 0.875 kB / 494.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.5482, allocations: 0 / 494.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.5484, allocations: 51.95 kB / 494.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.5484, allocations: 0 / 494.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.5486, allocations: 15.56 kB / 494.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.5486, allocations: 23.97 kB / 494.5 MB, free: 14.16 MB / 350.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.0001196/0.5487, allocations: 122.5 kB / 494.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.5488, allocations: 11.84 kB / 494.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/0.5509, allocations: 2.109 MB / 496.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.551, allocations: 11.98 kB / 496.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.551, allocations: 3.203 kB / 496.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.551, allocations: 3.984 kB / 496.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000995/0.552, allocations: 1.043 MB / 497.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.552, allocations: 0 / 497.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.5522, allocations: 35.91 kB / 497.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.5522, allocations: 4 kB / 497.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.5523, allocations: 11.55 kB / 497.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5523, allocations: 0 / 497.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.5523, allocations: 7.938 kB / 497.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000693/0.553, allocations: 0.6376 MB / 498.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.77e-05/0.553, allocations: 100.8 kB / 498.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.5531, allocations: 8 kB / 498.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.5532, allocations: 0 / 498.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.344e-05/0.5533, allocations: 12.69 kB / 498.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.5533, allocations: 8 kB / 498.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.551e-05/0.5534, allocations: 106.1 kB / 498.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5534, allocations: 3.938 kB / 498.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003/0.5564, allocations: 0.9069 MB / 499.6 MB, free: 8.969 MB / 350.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.004969/0.5614, allocations: 2.171 MB / 0.49 GB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004533/0.5618, allocations: 215.7 kB / 0.4902 GB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5619, allocations: 0 / 0.4902 GB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.5621, allocations: 159.9 kB / 0.4904 GB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/0.5628, allocations: 66.39 kB / 0.4905 GB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.5668, allocations: 2.711 MB / 0.4931 GB, free: 3.641 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.5671, allocations: 0.7328 MB / 0.4938 GB, free: 2.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000516/0.5677, allocations: 377.5 kB / 0.4942 GB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.5678, allocations: 71.39 kB / 0.4943 GB, free: 2.441 MB / 350.1 MB Notification: Performance of SimCode: time 4.068e-06/0.5678, allocations: 112 / 0.4943 GB, free: 2.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06652/0.6344, allocations: 36.09 MB / 0.5295 GB, free: 14.39 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002432/0.6347, allocations: 217.1 kB / 0.5297 GB, free: 14.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.332/4.967, allocations: 0 / 0.5297 GB, free: 14.12 MB / 398.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)