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.000849/0.0008491, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.0008414/0.0008414, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.4 MB / 222.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04354/0.04354, allocations: 9.075 MB / 279.5 MB, free: 12.12 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.000525/0.000525, allocations: 16 kB / 339.1 MB, free: 25.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07415/0.07469, allocations: 49.19 MB / 388.3 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01272/0.08745, allocations: 11.89 MB / 400.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008649/0.09613, allocations: 7.957 MB / 408.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.09627, allocations: 4 kB / 408.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.09644, allocations: 31.8 kB / 408.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004528/0.101, allocations: 1.433 MB / 409.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005812/0.1068, allocations: 1.736 MB / 411.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.107, allocations: 119.2 kB / 411.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.598e-05/0.107, allocations: 4 kB / 411.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.355e-05/0.1071, allocations: 39.86 kB / 411.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.882e-05/0.1072, allocations: 51.77 kB / 411.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.1072, allocations: 4 kB / 411.6 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01251/0.1197, allocations: 6.59 MB / 418.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.1198, allocations: 19.91 kB / 418.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.1199, allocations: 45.64 kB / 418.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004557/0.1244, allocations: 2.503 MB / 420.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1245, allocations: 4 kB / 420.7 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1245, allocations: 0 / 420.7 MB, free: 8.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1245, allocations: 0 / 420.7 MB, free: 8.219 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.002315/0.1268, allocations: 0.8578 MB / 421.6 MB, free: 7.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1268, allocations: 12.03 kB / 421.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00036/0.1272, allocations: 39.88 kB / 421.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.1275, allocations: 214.8 kB / 421.9 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1275, allocations: 8.188 kB / 421.9 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.1275, allocations: 8 kB / 421.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007893/0.1283, allocations: 260.5 kB / 422.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1283, allocations: 3.938 kB / 422.1 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.1284, allocations: 7.984 kB / 422.1 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1284, allocations: 7.953 kB / 422.2 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00068/0.1291, allocations: 207.8 kB / 422.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007745/0.1298, allocations: 0.6739 MB / 423 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007834/0.1306, allocations: 229.1 kB / 423.3 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.196e-05/0.1307, allocations: 57.91 kB / 423.3 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2832/0.4139, allocations: 64.57 MB / 487.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.414, allocations: 39.44 kB / 487.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.885e-06/0.414, allocations: 0 / 487.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001554/0.4156, allocations: 367.4 kB / 488.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.4156, allocations: 81.11 kB / 488.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.4158, allocations: 126.1 kB / 488.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.4158, allocations: 29.7 kB / 488.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.4159, allocations: 102 kB / 488.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.51e-05/0.416, allocations: 49.56 kB / 488.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.525e-05/0.416, allocations: 0 / 488.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.4161, allocations: 328.9 kB / 489 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.4162, allocations: 59.97 kB / 489 MB, free: 3.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.4164, allocations: 85.8 kB / 489.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.4165, allocations: 66.33 kB / 489.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4165, allocations: 0 / 489.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000421/0.417, allocations: 217.3 kB / 489.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.417, allocations: 8 kB / 489.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.417, allocations: 0 / 489.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.417, allocations: 3.781 kB / 489.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.4172, allocations: 56.83 kB / 489.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.4173, allocations: 3.938 kB / 489.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.4174, allocations: 15.48 kB / 489.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.4174, allocations: 19.98 kB / 489.5 MB, free: 3.203 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.4175, allocations: 117.8 kB / 489.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.266e-05/0.4176, allocations: 11.89 kB / 489.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002032/0.4197, allocations: 2.102 MB / 491.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-05/0.4197, allocations: 12.67 kB / 491.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4197, allocations: 0 / 491.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4197, allocations: 7.234 kB / 491.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009089/0.4206, allocations: 1.053 MB / 492.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.4206, allocations: 0 / 492.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.4209, allocations: 39.89 kB / 492.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.4209, allocations: 0 / 492.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.4209, allocations: 3.5 kB / 492.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4209, allocations: 4 kB / 492.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4209, allocations: 4 kB / 492.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000707/0.4216, allocations: 0.6277 MB / 493.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.445e-05/0.4217, allocations: 112.7 kB / 493.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.4218, allocations: 0 / 493.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.4219, allocations: 8 kB / 493.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.041e-05/0.422, allocations: 13.12 kB / 493.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.422, allocations: 4 kB / 493.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.375e-05/0.422, allocations: 103.2 kB / 493.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.422, allocations: 0 / 493.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002453/0.4245, allocations: 0.9095 MB / 494.6 MB, free: 14.02 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004475/0.429, allocations: 1.09 MB / 495.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004387/0.4294, allocations: 211.7 kB / 495.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4295, allocations: 0 / 495.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.4297, allocations: 159.9 kB / 496.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.4304, allocations: 68.05 kB / 496.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.4314, allocations: 0.6786 MB / 496.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.4317, allocations: 0.7292 MB / 497.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004771/0.4322, allocations: 385.8 kB / 497.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.818e-05/0.4323, allocations: 31.42 kB / 498 MB, free: 10.73 MB / 350.1 MB Notification: Performance of SimCode: time 1.883e-06/0.4323, allocations: 0 / 498 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Templates: time 0.04797/0.4803, allocations: 34.04 MB / 0.5195 GB, free: 8.699 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1) Environment - environmentSimulation: