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.0008135/0.0008136, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0009258/0.000926, allocations: 168.7 kB / 15.95 MB, free: 204 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.406/1.406, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04153/0.04153, allocations: 9.063 MB / 279.5 MB, free: 12.25 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.0004745/0.0004748, allocations: 16 kB / 339.2 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08492/0.08541, allocations: 49.19 MB / 388.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01223/0.09769, allocations: 11.89 MB / 400.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008143/0.1059, allocations: 7.957 MB / 408.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.585e-05/0.106, allocations: 0 / 408.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.1062, allocations: 31.8 kB / 408.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003826/0.11, allocations: 1.439 MB / 409.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004881/0.1149, allocations: 1.735 MB / 411.5 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.1151, allocations: 119.1 kB / 411.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.832e-05/0.1151, allocations: 7.984 kB / 411.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.004e-05/0.1152, allocations: 39.86 kB / 411.6 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.394e-05/0.1152, allocations: 47.84 kB / 411.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.1153, allocations: 4 kB / 411.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.1262, allocations: 6.598 MB / 418.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.538e-05/0.1263, allocations: 11.92 kB / 418.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.991e-05/0.1263, allocations: 37.7 kB / 418.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004083/0.1304, allocations: 2.507 MB / 420.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1304, allocations: 0 / 420.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1305, allocations: 0 / 420.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1305, allocations: 0 / 420.8 MB, free: 8.156 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.00216/0.1326, allocations: 0.8772 MB / 421.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1327, allocations: 8.031 kB / 421.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.396e-05/0.1327, allocations: 42.56 kB / 421.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003047/0.1331, allocations: 43.86 kB / 421.8 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.1333, allocations: 202.9 kB / 422 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1333, allocations: 4.188 kB / 422 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.1334, allocations: 11.91 kB / 422 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007692/0.1341, allocations: 268.4 kB / 422.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.1341, allocations: 0 / 422.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.1342, allocations: 3.953 kB / 422.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1342, allocations: 4 kB / 422.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006595/0.1348, allocations: 211.8 kB / 422.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006702/0.1355, allocations: 0.674 MB / 423.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007182/0.1363, allocations: 241 kB / 423.4 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.966e-05/0.1363, allocations: 53.75 kB / 423.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.267/0.4033, allocations: 64.57 MB / 488 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4034, allocations: 35.89 kB / 488.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.054e-06/0.4034, allocations: 0 / 488.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001465/0.4049, allocations: 374.1 kB / 488.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.405, allocations: 79.92 kB / 488.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.4051, allocations: 132.3 kB / 488.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.4051, allocations: 35.75 kB / 488.7 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.444e-05/0.4052, allocations: 89.89 kB / 488.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.4052, allocations: 54.33 kB / 488.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.617e-05/0.4053, allocations: 3.062 kB / 488.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4054, allocations: 322.6 kB / 489.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.4055, allocations: 55.16 kB / 489.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.4057, allocations: 86.02 kB / 489.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.4058, allocations: 65.48 kB / 489.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4058, allocations: 0.8594 kB / 489.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004073/0.4062, allocations: 210.4 kB / 489.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.4062, allocations: 7.781 kB / 489.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4062, allocations: 0 / 489.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4063, allocations: 4 kB / 489.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.4065, allocations: 60.92 kB / 489.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.4065, allocations: 0 / 489.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.4066, allocations: 15.34 kB / 489.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.4067, allocations: 21.78 kB / 489.6 MB, free: 4.863 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.4068, allocations: 124.9 kB / 489.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.4068, allocations: 11.86 kB / 489.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.4087, allocations: 2.11 MB / 491.9 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.4088, allocations: 9.062 kB / 491.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.4088, allocations: 0 / 491.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4088, allocations: 0 / 491.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009142/0.4097, allocations: 1.046 MB / 492.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.4097, allocations: 0 / 492.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.4099, allocations: 38.22 kB / 493 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.4099, allocations: 4 kB / 493 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.41, allocations: 3.953 kB / 493 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.41, allocations: 7.469 kB / 493 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.41, allocations: 4 kB / 493 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006505/0.4106, allocations: 0.6322 MB / 493.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.427e-05/0.4107, allocations: 100.8 kB / 493.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.4107, allocations: 2.438 kB / 493.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.4109, allocations: 9.828 kB / 493.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.4109, allocations: 19.2 kB / 493.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.411, allocations: 4 kB / 493.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.317e-05/0.411, allocations: 101.6 kB / 493.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.411, allocations: 3.75 kB / 493.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002669/0.4137, allocations: 0.9109 MB / 494.8 MB, free: 1.137 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.004724/0.4184, allocations: 2.157 MB / 496.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004002/0.4189, allocations: 210.5 kB / 497.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.4189, allocations: 0 / 497.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.4191, allocations: 159.8 kB / 497.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006062/0.4197, allocations: 62.95 kB / 497.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.4222, allocations: 1.541 MB / 498.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.4225, allocations: 0.7369 MB / 499.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004404/0.4229, allocations: 374 kB / 0.4883 GB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.4231, allocations: 69.66 kB / 0.4884 GB, free: 12.51 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.4231, allocations: 0 / 0.4884 GB, free: 12.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0604/0.4835, allocations: 36.59 MB / 0.5241 GB, free: 8.047 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002347/0.4838, allocations: 196.4 kB / 0.5243 GB, free: 7.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.678/4.162, allocations: 0 / 0.5243 GB, free: 7.809 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/linux/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) Environment - environmentSimulation: