Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.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.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",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.0008602/0.0008599, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005339/0.005339, allocations: 169.5 kB / 16.26 MB, free: 6.652 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.773/1.773, allocations: 205.4 MB / 222.4 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.05186/0.05186, allocations: 9.067 MB / 279.8 MB, free: 12.14 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.0005848/0.000585, allocations: 12.56 kB / 339.8 MB, free: 25.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1206, allocations: 49.18 MB / 389 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02277/0.1434, allocations: 17.17 MB / 406.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.1622, allocations: 17.06 MB / 423.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.1624, allocations: 0 / 423.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009727/0.1634, allocations: 251.3 kB / 423.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01945/0.1828, allocations: 5.475 MB / 429 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2665/0.4494, allocations: 471.3 kB / 429.4 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.4498, allocations: 204.3 kB / 429.6 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.993e-05/0.4499, allocations: 6.797 kB / 429.6 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.4501, allocations: 88.88 kB / 429.7 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.4502, allocations: 58.8 kB / 429.8 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.4503, allocations: 3.219 kB / 429.8 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02432/0.4746, allocations: 9.662 MB / 439.4 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.455e-05/0.4747, allocations: 13.7 kB / 439.5 MB, free: 18.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.4748, allocations: 80.25 kB / 439.5 MB, free: 18.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01664/0.4915, allocations: 4.002 MB / 443.5 MB, free: 17.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.4915, allocations: 1.188 kB / 443.5 MB, free: 17.51 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.869e-06/0.4916, allocations: 3.562 kB / 443.5 MB, free: 17.51 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.4916, allocations: 0 / 443.5 MB, free: 17.51 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.003317/0.4949, allocations: 0.8748 MB / 444.4 MB, free: 16.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.495, allocations: 10.31 kB / 444.4 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.481e-05/0.495, allocations: 37.81 kB / 444.5 MB, free: 16.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.4952, allocations: 25.14 kB / 444.5 MB, free: 16.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.4954, allocations: 206.9 kB / 444.7 MB, free: 16.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.4954, allocations: 3.344 kB / 444.7 MB, free: 16.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.4955, allocations: 7.156 kB / 444.7 MB, free: 16.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.4957, allocations: 132.6 kB / 444.8 MB, free: 16.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.4957, allocations: 0 / 444.8 MB, free: 16.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.4957, allocations: 3.938 kB / 444.8 MB, free: 16.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.4957, allocations: 5 kB / 444.8 MB, free: 16.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.4959, allocations: 94.45 kB / 444.9 MB, free: 16.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006336/0.4965, allocations: 0.5752 MB / 445.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.4967, allocations: 126.6 kB / 445.6 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.19e-05/0.4968, allocations: 83.91 kB / 445.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05607/0.5529, allocations: 32.34 MB / 478 MB, free: 16.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/0.553, allocations: 38.12 kB / 478.1 MB, free: 16.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.527e-06/0.553, allocations: 4 kB / 478.1 MB, free: 16.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006749/0.5537, allocations: 230.9 kB / 478.3 MB, free: 16.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.5538, allocations: 77.11 kB / 478.4 MB, free: 16.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.501e-05/0.5539, allocations: 124.6 kB / 478.5 MB, free: 16.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.5539, allocations: 29.58 kB / 478.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.554, allocations: 95.19 kB / 478.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.554, allocations: 73.45 kB / 478.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.5541, allocations: 26.58 kB / 478.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5542, allocations: 329.5 kB / 479.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.682e-05/0.5543, allocations: 41.33 kB / 479.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.217e-05/0.5544, allocations: 71.59 kB / 479.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.5545, allocations: 119.4 kB / 479.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.5545, allocations: 0 / 479.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002145/0.5547, allocations: 164.9 kB / 479.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.5548, allocations: 5.938 kB / 479.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.5548, allocations: 0 / 479.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.5548, allocations: 4 kB / 479.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.57e-05/0.5549, allocations: 25.25 kB / 479.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.5549, allocations: 3.938 kB / 479.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.944e-05/0.555, allocations: 10.56 kB / 479.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.555, allocations: 10.42 kB / 479.5 MB, free: 15.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (state_p.phase,state_h.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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 prepare postOptimizeDAE: time 0.0001294/0.5552, allocations: 115.9 kB / 479.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.5552, allocations: 15.91 kB / 479.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003942/0.5556, allocations: 312.5 kB / 479.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002593/0.5559, allocations: 242.4 kB / 480.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.5559, allocations: 3.938 kB / 480.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.5559, allocations: 3.984 kB / 480.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009994/0.5569, allocations: 0.7597 MB / 480.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.5569, allocations: 0 / 480.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.5571, allocations: 48.48 kB / 481 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5571, allocations: 0 / 481 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.5571, allocations: 4 kB / 481 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.5571, allocations: 0 / 481 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5571, allocations: 0 / 481 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005143/0.5577, allocations: 0.5209 MB / 481.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.141e-05/0.5577, allocations: 101.2 kB / 481.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.5578, allocations: 6.797 kB / 481.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.5579, allocations: 9.062 kB / 481.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.558, allocations: 20.02 kB / 481.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.558, allocations: 10.06 kB / 481.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.904e-05/0.5581, allocations: 99.73 kB / 481.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5581, allocations: 0 / 481.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004389/0.5625, allocations: 0.923 MB / 482.7 MB, free: 12.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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.007422/0.5699, allocations: 2.429 MB / 485.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.5704, allocations: 254.5 kB / 485.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.5704, allocations: 0 / 485.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.5706, allocations: 121.8 kB / 485.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.5717, allocations: 143.6 kB / 485.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.5759, allocations: 2.521 MB / 488.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.5763, allocations: 0.737 MB / 488.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001919/0.5765, allocations: 42.03 kB / 488.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.5766, allocations: 68.61 kB / 489 MB, free: 6.816 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5766, allocations: 0 / 489 MB, free: 6.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06924/0.6459, allocations: 30.29 MB / 0.5071 GB, free: 8.688 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003002/0.6462, allocations: 227.2 kB / 0.5073 GB, free: 8.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.322/3.968, allocations: 0 / 0.5073 GB, free: 8.426 MB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1)