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.000939/0.000939, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001015/0.001015, allocations: 177.3 kB / 15.94 MB, free: 228 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.278/1.278, allocations: 205.4 MB / 222.1 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04134/0.04134, allocations: 9.067 MB / 279.4 MB, free: 12.15 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.0005243/0.0005244, allocations: 12 kB / 339.2 MB, free: 25.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09115, allocations: 49.2 MB / 388.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01323/0.1044, allocations: 11.01 MB / 399.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00844/0.1129, allocations: 7.339 MB / 406.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.383e-05/0.1131, allocations: 4 kB / 406.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002273/0.1133, allocations: 39.84 kB / 406.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.1178, allocations: 1.419 MB / 408.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004868/0.1227, allocations: 1.773 MB / 410 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.1229, allocations: 103.8 kB / 410.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.478e-05/0.1229, allocations: 4 kB / 410.1 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.478e-05/0.123, allocations: 35.92 kB / 410.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.1231, allocations: 47.78 kB / 410.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.1231, allocations: 4 kB / 410.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01249/0.1356, allocations: 6.738 MB / 416.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.278e-05/0.1357, allocations: 19.91 kB / 416.9 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.893e-05/0.1358, allocations: 45.64 kB / 417 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005132/0.1409, allocations: 2.499 MB / 419.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.141, allocations: 0 / 419.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.141, allocations: 0 / 419.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.141, allocations: 0 / 419.5 MB, free: 9.527 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.002606/0.1436, allocations: 0.8656 MB / 420.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.1437, allocations: 8.031 kB / 420.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.278e-05/0.1437, allocations: 46.5 kB / 420.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.1441, allocations: 43.86 kB / 420.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.1444, allocations: 202.9 kB / 420.6 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.1444, allocations: 4.188 kB / 420.6 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/0.1444, allocations: 11.91 kB / 420.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008282/0.1453, allocations: 260.5 kB / 420.9 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1453, allocations: 4 kB / 420.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.1453, allocations: 7.891 kB / 420.9 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1453, allocations: 4 kB / 420.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007347/0.1461, allocations: 215.7 kB / 421.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006994/0.1468, allocations: 0.6702 MB / 421.8 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008011/0.1476, allocations: 237.2 kB / 422 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2821/0.4297, allocations: 64.57 MB / 486.6 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.4298, allocations: 34.56 kB / 486.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.264e-06/0.4298, allocations: 0 / 486.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.00162/0.4314, allocations: 366.1 kB / 487 MB, free: 5.609 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.4315, allocations: 77.11 kB / 487 MB, free: 5.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.4316, allocations: 134.6 kB / 487.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.4317, allocations: 29.7 kB / 487.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.4317, allocations: 97.64 kB / 487.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.842e-05/0.4318, allocations: 52.19 kB / 487.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.601e-05/0.4318, allocations: 4 kB / 487.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.432, allocations: 325.1 kB / 487.7 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.4321, allocations: 51.97 kB / 487.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.4323, allocations: 91.39 kB / 487.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.4324, allocations: 59.73 kB / 487.9 MB, free: 4.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.4324, allocations: 0 / 487.9 MB, free: 4.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004025/0.4328, allocations: 220.7 kB / 488.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.4329, allocations: 7.984 kB / 488.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.4329, allocations: 3.516 kB / 488.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.4329, allocations: 7.781 kB / 488.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.4331, allocations: 52.02 kB / 488.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.4331, allocations: 4 kB / 488.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.4333, allocations: 20.11 kB / 488.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.4333, allocations: 15.98 kB / 488.2 MB, free: 4.367 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.0001172/0.4334, allocations: 113.8 kB / 488.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.4335, allocations: 11.91 kB / 488.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.4356, allocations: 2.107 MB / 490.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.4356, allocations: 8.672 kB / 490.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4356, allocations: 0 / 490.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4356, allocations: 3.953 kB / 490.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009998/0.4366, allocations: 1.048 MB / 491.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4366, allocations: 0 / 491.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.4369, allocations: 39.89 kB / 491.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.4369, allocations: 4 kB / 491.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.4369, allocations: 8 kB / 491.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4369, allocations: 0 / 491.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4369, allocations: 0 / 491.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008249/0.4377, allocations: 0.6434 MB / 492.2 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.4378, allocations: 97.91 kB / 492.3 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.4378, allocations: 12.06 kB / 492.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.438, allocations: 3.656 kB / 492.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.194e-05/0.438, allocations: 19.94 kB / 492.3 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.4381, allocations: 7.938 kB / 492.3 MB, free: 108 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.4382, allocations: 103.2 kB / 492.4 MB, free: 4 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.4382, allocations: 0 / 492.4 MB, free: 4 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.002638/0.4409, allocations: 0.9064 MB / 493.3 MB, free: 15.17 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.005601/0.4465, allocations: 2.245 MB / 495.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005182/0.447, allocations: 216.3 kB / 495.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.447, allocations: 8 kB / 495.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.4472, allocations: 151.9 kB / 495.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.4478, allocations: 76 kB / 496 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/0.4511, allocations: 1.976 MB / 498 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000668/0.4518, allocations: 0.7409 MB / 498.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005131/0.4524, allocations: 381.1 kB / 499.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.4525, allocations: 67.41 kB / 499.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4525, allocations: 0 / 499.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0609/0.5134, allocations: 36.56 MB / 0.5232 GB, free: 4.785 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/0.5137, allocations: 201.2 kB / 0.5234 GB, free: 4.535 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.453/3.967, allocations: 0 / 0.5234 GB, free: 4.535 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/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: