Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",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.001044/0.001044, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001104/0.001104, allocations: 190.6 kB / 16.14 MB, free: 6.707 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.391/1.391, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04085/0.04085, allocations: 9.079 MB / 278.4 MB, free: 12.41 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.001553/0.001554, allocations: 67.91 kB / 337.4 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07717/0.07874, allocations: 48.17 MB / 385.6 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01609/0.09485, allocations: 17.58 MB / 403.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.1086, allocations: 17.13 MB / 420.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.1087, allocations: 0 / 420.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006046/0.1093, allocations: 251.3 kB / 420.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.1216, allocations: 5.205 MB / 425.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.1229, allocations: 465.8 kB / 426.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.1231, allocations: 179 kB / 426.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.501e-05/0.1231, allocations: 17.09 kB / 426.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.1232, allocations: 75.59 kB / 426.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.661e-05/0.1233, allocations: 55.78 kB / 426.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.1233, allocations: 7.938 kB / 426.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1625/0.2858, allocations: 8.782 MB / 435.3 MB, free: 18.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.569e-05/0.2859, allocations: 12.33 kB / 435.4 MB, free: 18.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.089e-05/0.286, allocations: 52.91 kB / 435.4 MB, free: 18.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007902/0.2939, allocations: 3.879 MB / 439.3 MB, free: 18.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2939, allocations: 0 / 439.3 MB, free: 18.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2939, allocations: 0.7188 kB / 439.3 MB, free: 18.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2939, allocations: 1.375 kB / 439.3 MB, free: 18.29 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.001525/0.2955, allocations: 0.8916 MB / 440.2 MB, free: 17.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.2955, allocations: 9.844 kB / 440.2 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.979e-05/0.2955, allocations: 39.31 kB / 440.2 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.2957, allocations: 25.64 kB / 440.3 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.2959, allocations: 205 kB / 440.5 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.2959, allocations: 2.344 kB / 440.5 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.2959, allocations: 10.41 kB / 440.5 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.2961, allocations: 134.4 kB / 440.6 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.2961, allocations: 0 / 440.6 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.2961, allocations: 0 / 440.6 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.2961, allocations: 6.438 kB / 440.6 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.2963, allocations: 99.3 kB / 440.7 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.2968, allocations: 0.5768 MB / 441.3 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.297, allocations: 122.2 kB / 441.4 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.319e-05/0.2971, allocations: 82.92 kB / 441.5 MB, free: 16.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05482/0.3519, allocations: 33.16 MB / 474.6 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.352, allocations: 37 kB / 474.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.745e-06/0.352, allocations: 0 / 474.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006056/0.3526, allocations: 237 kB / 474.9 MB, free: 17.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.3527, allocations: 79.73 kB / 475 MB, free: 17.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.666e-05/0.3528, allocations: 125.6 kB / 475.1 MB, free: 16.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.253e-05/0.3529, allocations: 29.64 kB / 475.1 MB, free: 16.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.032e-05/0.3529, allocations: 88.44 kB / 475.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.353, allocations: 76.03 kB / 475.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.353, allocations: 41.23 kB / 475.3 MB, free: 16.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3531, allocations: 321.8 kB / 475.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.888e-05/0.3532, allocations: 41.98 kB / 475.7 MB, free: 16.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.64e-05/0.3533, allocations: 76.47 kB / 475.8 MB, free: 16.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.3534, allocations: 120.7 kB / 475.9 MB, free: 16.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3534, allocations: 0 / 475.9 MB, free: 16.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001993/0.3536, allocations: 167.8 kB / 476 MB, free: 16.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.3536, allocations: 10.12 kB / 476.1 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3537, allocations: 0 / 476.1 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.3537, allocations: 0 / 476.1 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.13e-05/0.3538, allocations: 23.86 kB / 476.1 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3538, allocations: 3.938 kB / 476.1 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.678e-05/0.3539, allocations: 17.94 kB / 476.1 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.3539, allocations: 9.875 kB / 476.1 MB, free: 16.29 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.0001156/0.354, allocations: 115.9 kB / 476.2 MB, free: 16.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.3541, allocations: 11.47 kB / 476.2 MB, free: 16.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003844/0.3545, allocations: 319.9 kB / 476.5 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002163/0.3547, allocations: 238 kB / 476.8 MB, free: 16.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3547, allocations: 7.922 kB / 476.8 MB, free: 16.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3547, allocations: 0 / 476.8 MB, free: 16.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008093/0.3555, allocations: 0.7536 MB / 477.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3555, allocations: 0 / 477.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.3557, allocations: 42.52 kB / 477.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3557, allocations: 0 / 477.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.3557, allocations: 7.438 kB / 477.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3557, allocations: 0 / 477.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3557, allocations: 3.562 kB / 477.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004865/0.3562, allocations: 0.5247 MB / 478.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.3563, allocations: 103.8 kB / 478.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.3563, allocations: 3.688 kB / 478.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.3564, allocations: 7.438 kB / 478.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.76e-05/0.3565, allocations: 19.97 kB / 478.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.3565, allocations: 5 kB / 478.3 MB, free: 15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.847e-05/0.3566, allocations: 97.58 kB / 478.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3566, allocations: 3.656 kB / 478.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002315/0.3589, allocations: 0.9233 MB / 479.3 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_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.003969/0.3629, allocations: 2.397 MB / 481.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.3632, allocations: 240.8 kB / 481.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3632, allocations: 0 / 481.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.3634, allocations: 135.3 kB / 482 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009302/0.3643, allocations: 143.6 kB / 482.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.3671, allocations: 2.484 MB / 484.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3674, allocations: 0.7331 MB / 485.4 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.3676, allocations: 41.19 kB / 485.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.116e-05/0.3677, allocations: 73.59 kB / 485.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3677, allocations: 4 kB / 485.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4029/0.7706, allocations: 30.27 MB / 0.5037 GB, free: 10.22 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.7708, allocations: 207.8 kB / 0.5039 GB, free: 9.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.03/3.801, allocations: 4.078 kB / 0.5039 GB, free: 9.969 MB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1)