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.00115/0.001151, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00131/0.00131, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.39/1.39, allocations: 205.1 MB / 222.1 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04655/0.04655, allocations: 9.085 MB / 278.5 MB, free: 12.35 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.0015/0.0015, allocations: 63.84 kB / 337.6 MB, free: 25.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09811/0.09963, allocations: 48.17 MB / 385.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01492/0.1146, allocations: 12.95 MB / 398.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009324/0.124, allocations: 8.631 MB / 407.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.066e-05/0.1241, allocations: 0 / 407.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.1244, allocations: 47.77 kB / 407.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004554/0.1289, allocations: 1.657 MB / 409.1 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006062/0.135, allocations: 1.972 MB / 411.1 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1352, allocations: 127.2 kB / 411.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.485e-05/0.1352, allocations: 7.938 kB / 411.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.096e-05/0.1353, allocations: 39.81 kB / 411.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.595e-05/0.1354, allocations: 47.77 kB / 411.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.1354, allocations: 4 kB / 411.3 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01179/0.1472, allocations: 6.833 MB / 418.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.44e-05/0.1473, allocations: 11.86 kB / 418.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.626e-05/0.1474, allocations: 43.81 kB / 418.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01223/0.1596, allocations: 3.801 MB / 422 MB, free: 5.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1597, allocations: 0 / 422 MB, free: 5.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1597, allocations: 0 / 422 MB, free: 5.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1597, allocations: 0 / 422 MB, free: 5.195 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.002871/0.1626, allocations: 0.8814 MB / 422.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.1627, allocations: 12.03 kB / 422.9 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.68e-05/0.1627, allocations: 42.73 kB / 422.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003644/0.1631, allocations: 40.81 kB / 422.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.1633, allocations: 204.1 kB / 423.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.1634, allocations: 16.3 kB / 423.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.1634, allocations: 12 kB / 423.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008982/0.1643, allocations: 259.1 kB / 423.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1643, allocations: 0 / 423.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1643, allocations: 4 kB / 423.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.1644, allocations: 8 kB / 423.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000798/0.1652, allocations: 215.7 kB / 423.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000707/0.1659, allocations: 0.6661 MB / 424.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008744/0.1668, allocations: 244.9 kB / 424.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.192e-05/0.1669, allocations: 57.73 kB / 424.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2984/0.4652, allocations: 63.95 MB / 488.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.4653, allocations: 38.55 kB / 488.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 3.417e-06/0.4653, allocations: 5.172 kB / 488.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001831/0.4672, allocations: 364.2 kB / 488.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/0.4673, allocations: 81.11 kB / 489 MB, free: 2.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.4674, allocations: 136.2 kB / 489.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.4674, allocations: 25.7 kB / 489.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.4675, allocations: 102 kB / 489.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.789e-05/0.4676, allocations: 43.12 kB / 489.3 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.4677, allocations: 61.67 kB / 489.4 MB, free: 2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4678, allocations: 322.8 kB / 489.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.468, allocations: 59.97 kB / 489.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.4681, allocations: 94.23 kB / 489.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.4685, allocations: 143.3 kB / 490 MB, free: 1.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4685, allocations: 7.75 kB / 490 MB, free: 1.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005376/0.469, allocations: 213 kB / 490.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.4691, allocations: 8 kB / 490.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.4691, allocations: 3.984 kB / 490.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.4691, allocations: 0 / 490.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.4693, allocations: 60.55 kB / 490.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4693, allocations: 2.266 kB / 490.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.4695, allocations: 11.12 kB / 490.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.4695, allocations: 19.98 kB / 490.3 MB, free: 1.066 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.4697, allocations: 123.9 kB / 490.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/0.4698, allocations: 11.84 kB / 490.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002055/0.4718, allocations: 2.105 MB / 492.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.4718, allocations: 15.98 kB / 492.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.4719, allocations: 1.078 kB / 492.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4719, allocations: 0 / 492.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.4729, allocations: 1.046 MB / 493.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.4729, allocations: 0 / 493.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.4732, allocations: 43.83 kB / 493.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.4732, allocations: 7.938 kB / 493.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.4733, allocations: 4 kB / 493.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.4733, allocations: 0 / 493.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4733, allocations: 4 kB / 493.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007537/0.474, allocations: 0.6376 MB / 494.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.58e-05/0.4741, allocations: 100.8 kB / 494.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/0.4742, allocations: 8 kB / 494.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.4743, allocations: 7.5 kB / 494.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.4744, allocations: 15.98 kB / 494.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.4744, allocations: 4 kB / 494.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.015e-05/0.4745, allocations: 113.9 kB / 494.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4745, allocations: 0 / 494.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002752/0.4773, allocations: 0.9039 MB / 495.5 MB, free: 11.86 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.006505/0.4838, allocations: 2.173 MB / 497.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005083/0.4843, allocations: 215.7 kB / 497.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4843, allocations: 0 / 497.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002278/0.4846, allocations: 159.9 kB / 498 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006564/0.4852, allocations: 71.03 kB / 498.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004087/0.4893, allocations: 2.677 MB / 0.489 GB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.4896, allocations: 0.7328 MB / 0.4897 GB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005581/0.4902, allocations: 376.5 kB / 0.4901 GB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.4904, allocations: 67.41 kB / 0.4901 GB, free: 5.371 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4904, allocations: 0 / 0.4901 GB, free: 5.371 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07837/0.5687, allocations: 36.39 MB / 0.5257 GB, free: 1.004 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002776/0.5691, allocations: 210.7 kB / 0.5259 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.799/4.369, allocations: 7.938 kB / 0.5259 GB, free: 0.7383 MB / 382.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)