Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",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.001164/0.001164, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 196 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04604/0.04604, allocations: 9.1 MB / 278.9 MB, free: 12.16 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.002433/0.002433, allocations: 67.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.105, allocations: 48.16 MB / 386.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01864/0.1237, allocations: 17.41 MB / 403.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01638/0.1401, allocations: 16.91 MB / 420.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.1402, allocations: 4 kB / 420.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006756/0.1409, allocations: 283.1 kB / 420.9 MB, free: 6.395 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.01432/0.1553, allocations: 6.12 MB / 427 MB, free: 276 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1394/0.2946, allocations: 0.5522 MB / 427.6 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.2949, allocations: 204.5 kB / 427.8 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.2949, allocations: 13.84 kB / 427.8 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.2951, allocations: 94.02 kB / 427.9 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.562e-05/0.2952, allocations: 52.39 kB / 427.9 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.2952, allocations: 5.359 kB / 427.9 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01611/0.3113, allocations: 9.569 MB / 437.5 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.906e-05/0.3114, allocations: 12.7 kB / 437.5 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3115, allocations: 56.03 kB / 437.6 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.3217, allocations: 4.02 MB / 441.6 MB, free: 18.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3217, allocations: 0 / 441.6 MB, free: 18.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3217, allocations: 0 / 441.6 MB, free: 18.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.3218, allocations: 8.469 kB / 441.6 MB, free: 18.1 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.001869/0.3236, allocations: 0.8965 MB / 442.5 MB, free: 17.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.3237, allocations: 9.969 kB / 442.5 MB, free: 17.47 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.192e-05/0.3237, allocations: 39.52 kB / 442.5 MB, free: 17.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.3239, allocations: 28.11 kB / 442.6 MB, free: 17.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.3241, allocations: 200.2 kB / 442.8 MB, free: 17.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.3241, allocations: 5.625 kB / 442.8 MB, free: 17.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.3241, allocations: 13.69 kB / 442.8 MB, free: 17.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.3243, allocations: 126.2 kB / 442.9 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3243, allocations: 0 / 442.9 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3244, allocations: 4.812 kB / 442.9 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3244, allocations: 6.297 kB / 442.9 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.3245, allocations: 99.86 kB / 443 MB, free: 17.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005516/0.3251, allocations: 0.5696 MB / 443.6 MB, free: 16.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.3253, allocations: 136.6 kB / 443.7 MB, free: 16.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.452e-05/0.3254, allocations: 76.11 kB / 443.8 MB, free: 16.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05501/0.3804, allocations: 33.18 MB / 477 MB, free: 16.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.3805, allocations: 30.56 kB / 477 MB, free: 16.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.484e-06/0.3805, allocations: 0 / 477 MB, free: 16.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006054/0.3811, allocations: 240.8 kB / 477.2 MB, free: 16.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.3811, allocations: 77.11 kB / 477.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.489e-05/0.3812, allocations: 124.3 kB / 477.4 MB, free: 16.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.3813, allocations: 29.64 kB / 477.5 MB, free: 16.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.3813, allocations: 88.5 kB / 477.5 MB, free: 16.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.659e-05/0.3814, allocations: 77.41 kB / 477.6 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.665e-05/0.3814, allocations: 37.52 kB / 477.7 MB, free: 16.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.919e-05/0.3815, allocations: 322.7 kB / 478 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.34e-05/0.3816, allocations: 47.36 kB / 478 MB, free: 15.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.664e-05/0.3817, allocations: 65 kB / 478.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.3818, allocations: 130.8 kB / 478.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3818, allocations: 0 / 478.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002094/0.382, allocations: 166.4 kB / 478.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3821, allocations: 4 kB / 478.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3821, allocations: 4 kB / 478.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.3821, allocations: 0 / 478.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.15e-05/0.3822, allocations: 20 kB / 478.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.3822, allocations: 3.938 kB / 478.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.245e-05/0.3823, allocations: 19.08 kB / 478.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.3823, allocations: 4 kB / 478.4 MB, free: 15.62 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 8.577e-05/0.3824, allocations: 121.2 kB / 478.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.3824, allocations: 7.906 kB / 478.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004023/0.3828, allocations: 320.2 kB / 478.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002232/0.3831, allocations: 241.6 kB / 479.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3831, allocations: 4.812 kB / 479.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3831, allocations: 7.984 kB / 479.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007611/0.3839, allocations: 0.7465 MB / 479.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.3839, allocations: 1.422 kB / 479.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.384, allocations: 39.27 kB / 479.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.384, allocations: 0 / 479.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.3841, allocations: 13.81 kB / 479.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3841, allocations: 0 / 479.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3841, allocations: 0 / 479.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005056/0.3846, allocations: 0.5253 MB / 480.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.157e-05/0.3847, allocations: 96.88 kB / 480.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.3847, allocations: 8 kB / 480.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.3848, allocations: 4 kB / 480.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.3849, allocations: 19.98 kB / 480.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3849, allocations: 13.64 kB / 480.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.369e-05/0.385, allocations: 91.27 kB / 480.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.385, allocations: 0 / 480.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003242/0.3882, allocations: 0.9252 MB / 481.6 MB, free: 12.69 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.005399/0.3936, allocations: 2.397 MB / 484 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.394, allocations: 264.6 kB / 484.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3941, allocations: 1.641 kB / 484.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.3942, allocations: 123.1 kB / 484.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009929/0.3952, allocations: 150.1 kB / 484.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.3987, allocations: 2.422 MB / 486.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.3991, allocations: 0.7355 MB / 487.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000164/0.3993, allocations: 41.91 kB / 487.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.888e-05/0.3994, allocations: 63.41 kB / 487.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3994, allocations: 0 / 487.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05758/0.457, allocations: 30.62 MB / 0.5062 GB, free: 7.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.748/9.205, allocations: 15.75 kB / 0.5063 GB, free: 7.973 MB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0004 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)