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: translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001574, allocations: 99.91 kB / 16.35 MB, free: 5.824 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.001398/0.001399, allocations: 193.2 kB / 17.29 MB, free: 5.48 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.737/1.737, allocations: 205.1 MB / 223.2 MB, free: 12.1 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04704/0.04704, allocations: 9.104 MB / 279.6 MB, free: 2.945 MB / 222.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.001516/0.001517, allocations: 63.91 kB / 339.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.384, allocations: 48.14 MB / 387.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01922/0.4033, allocations: 12.82 MB / 400.4 MB, free: 42.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.4138, allocations: 8.578 MB / 409 MB, free: 35.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.414, allocations: 3.938 kB / 409 MB, free: 35.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.4144, allocations: 46.84 kB / 409.1 MB, free: 35.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007839/0.4222, allocations: 1.883 MB / 410.9 MB, free: 34.42 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009407/0.4316, allocations: 2.258 MB / 413.2 MB, free: 32.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.432, allocations: 130 kB / 413.3 MB, free: 32.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.533e-05/0.432, allocations: 4.094 kB / 413.3 MB, free: 32.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.251e-05/0.4321, allocations: 39.77 kB / 413.4 MB, free: 32.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.4323, allocations: 50.19 kB / 413.4 MB, free: 32.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.4323, allocations: 6.75 kB / 413.4 MB, free: 32.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01625/0.4486, allocations: 6.928 MB / 420.4 MB, free: 26.69 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.4487, allocations: 19.91 kB / 420.4 MB, free: 26.67 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.4488, allocations: 47.75 kB / 420.4 MB, free: 26.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.4614, allocations: 3.766 MB / 424.2 MB, free: 22.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4614, allocations: 0 / 424.2 MB, free: 22.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4614, allocations: 0 / 424.2 MB, free: 22.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.4614, allocations: 0 / 424.2 MB, free: 22.85 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.003459/0.4649, allocations: 0.8859 MB / 425.1 MB, free: 21.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.465, allocations: 12.03 kB / 425.1 MB, free: 21.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004597/0.4654, allocations: 44.8 kB / 425.1 MB, free: 21.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.4657, allocations: 212.1 kB / 425.3 MB, free: 21.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.4657, allocations: 4.562 kB / 425.3 MB, free: 21.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.4658, allocations: 15.94 kB / 425.4 MB, free: 21.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008599/0.4666, allocations: 263.1 kB / 425.6 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.4667, allocations: 0 / 425.6 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.4667, allocations: 1.812 kB / 425.6 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4667, allocations: 4 kB / 425.6 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007296/0.4674, allocations: 207.8 kB / 425.8 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000781/0.4682, allocations: 0.6739 MB / 426.5 MB, free: 20.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008231/0.4691, allocations: 237 kB / 426.7 MB, free: 20.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.94e-05/0.4692, allocations: 69.66 kB / 426.8 MB, free: 20.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1252/0.5943, allocations: 64.23 MB / 491 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.603e-05/0.5945, allocations: 34.56 kB / 491.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.815e-06/0.5945, allocations: 0 / 491.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.00197/0.5965, allocations: 373.1 kB / 491.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.5965, allocations: 81.11 kB / 491.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.5967, allocations: 130.1 kB / 491.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.5967, allocations: 25.7 kB / 491.7 MB, free: 11.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.5968, allocations: 96.03 kB / 491.7 MB, free: 11.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.557e-05/0.5969, allocations: 55.2 kB / 491.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.597, allocations: 61.61 kB / 491.9 MB, free: 11.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.5972, allocations: 318.8 kB / 492.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.5973, allocations: 59.95 kB / 492.2 MB, free: 10.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.5975, allocations: 89.42 kB / 492.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.5978, allocations: 151.3 kB / 492.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.5978, allocations: 0 / 492.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004926/0.5983, allocations: 210.2 kB / 492.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.5984, allocations: 8 kB / 492.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.5984, allocations: 3.938 kB / 492.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.5984, allocations: 4 kB / 492.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.5986, allocations: 61.52 kB / 492.7 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.5987, allocations: 3.938 kB / 492.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.5988, allocations: 15.84 kB / 492.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.5988, allocations: 15.98 kB / 492.8 MB, free: 10.3 MB / 382.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.0001197/0.599, allocations: 113.8 kB / 492.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.739e-05/0.5991, allocations: 19.89 kB / 492.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002219/0.6013, allocations: 2.104 MB / 495 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/0.6013, allocations: 7.984 kB / 495 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.6013, allocations: 0 / 495 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.6014, allocations: 4 kB / 495 MB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.6025, allocations: 1.048 MB / 496.1 MB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.6025, allocations: 0 / 496.1 MB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002401/0.6028, allocations: 39.89 kB / 496.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.6028, allocations: 0 / 496.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.6028, allocations: 14.48 kB / 496.1 MB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.6028, allocations: 4 kB / 496.1 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6028, allocations: 0 / 496.1 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008582/0.6037, allocations: 0.6488 MB / 496.8 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.6038, allocations: 100.9 kB / 496.9 MB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.6038, allocations: 7.938 kB / 496.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.604, allocations: 4 kB / 496.9 MB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.6041, allocations: 12.05 kB / 496.9 MB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.6041, allocations: 8 kB / 496.9 MB, free: 6.016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.695e-05/0.6042, allocations: 98.14 kB / 497 MB, free: 5.922 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6042, allocations: 0 / 497 MB, free: 5.922 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003673/0.6079, allocations: 0.9097 MB / 497.9 MB, free: 5.012 MB / 382.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.004144/0.612, allocations: 1.099 MB / 499 MB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005144/0.6125, allocations: 211.8 kB / 499.2 MB, free: 3.699 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6126, allocations: 3.938 kB / 499.2 MB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.6128, allocations: 163.8 kB / 499.4 MB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006437/0.6134, allocations: 62.61 kB / 499.4 MB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.6145, allocations: 0.5716 MB / 0.4883 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.6149, allocations: 0.7328 MB / 0.489 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005108/0.6154, allocations: 372.6 kB / 0.4894 GB, free: 1.758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.6155, allocations: 35.41 kB / 0.4894 GB, free: 1.723 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.6155, allocations: 0 / 0.4894 GB, free: 1.723 MB / 382.1 MB Notification: Performance of Templates: time 0.05079/0.6663, allocations: 33.55 MB / 0.5222 GB, free: 184 kB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)