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.001528/0.001528, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00184/0.00184, allocations: 194 kB / 16.25 MB, free: 6.621 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.412/1.412, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04384/0.04384, allocations: 9.087 MB / 278.5 MB, free: 12.34 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.001356/0.001356, allocations: 63.91 kB / 337.6 MB, free: 25.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08242, allocations: 48.16 MB / 385.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01911/0.1016, allocations: 17.41 MB / 403.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.1161, allocations: 16.89 MB / 420.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.1162, allocations: 0 / 420.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007102/0.117, allocations: 267.3 kB / 420.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01385/0.1309, allocations: 5.529 MB / 425.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.1323, allocations: 0.5017 MB / 426.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.1325, allocations: 203 kB / 426.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.21e-05/0.1326, allocations: 5.125 kB / 426.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.1327, allocations: 99.52 kB / 426.7 MB, free: 452 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.126e-05/0.1328, allocations: 59.72 kB / 426.7 MB, free: 392 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.1328, allocations: 4 kB / 426.7 MB, free: 388 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1904/0.3233, allocations: 9.752 MB / 436.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.038e-05/0.3234, allocations: 12.33 kB / 436.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.3235, allocations: 52.12 kB / 436.6 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01467/0.3382, allocations: 4.037 MB / 440.6 MB, free: 18.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.3382, allocations: 3.938 kB / 440.6 MB, free: 18.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3382, allocations: 0 / 440.6 MB, free: 18.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.3383, allocations: 2.25 kB / 440.6 MB, free: 18.58 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.003031/0.3413, allocations: 0.8896 MB / 441.5 MB, free: 17.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.3414, allocations: 11.31 kB / 441.5 MB, free: 17.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.945e-05/0.3414, allocations: 40.02 kB / 441.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.3416, allocations: 22.23 kB / 441.6 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.3418, allocations: 207.2 kB / 441.8 MB, free: 17.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.3418, allocations: 2.594 kB / 441.8 MB, free: 17.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.3418, allocations: 11.42 kB / 441.8 MB, free: 17.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.342, allocations: 128 kB / 441.9 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3421, allocations: 1.078 kB / 441.9 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.3421, allocations: 4.5 kB / 441.9 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.3421, allocations: 3.969 kB / 441.9 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.3422, allocations: 93.25 kB / 442 MB, free: 17.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.3428, allocations: 0.5836 MB / 442.6 MB, free: 17.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.343, allocations: 125.8 kB / 442.7 MB, free: 17.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3431, allocations: 80.06 kB / 442.8 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05994/0.4031, allocations: 33.18 MB / 476 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.4032, allocations: 35.78 kB / 476 MB, free: 17.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.4032, allocations: 3.469 kB / 476 MB, free: 17.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006795/0.4039, allocations: 232.3 kB / 476.2 MB, free: 17.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.404, allocations: 81.55 kB / 476.3 MB, free: 17.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.975e-05/0.4041, allocations: 121.9 kB / 476.4 MB, free: 16.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.4041, allocations: 27.2 kB / 476.5 MB, free: 16.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.4042, allocations: 92.31 kB / 476.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.317e-05/0.4042, allocations: 71.27 kB / 476.6 MB, free: 16.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.587e-05/0.4043, allocations: 42.45 kB / 476.7 MB, free: 16.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4044, allocations: 322.3 kB / 477 MB, free: 16.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/0.4045, allocations: 44.48 kB / 477 MB, free: 16.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.687e-05/0.4046, allocations: 70.53 kB / 477.1 MB, free: 16.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.4047, allocations: 118.1 kB / 477.2 MB, free: 16.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4048, allocations: 0 / 477.2 MB, free: 16.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002495/0.405, allocations: 170.4 kB / 477.4 MB, free: 16.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.405, allocations: 10.97 kB / 477.4 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.405, allocations: 0 / 477.4 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4051, allocations: 0 / 477.4 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.412e-05/0.4052, allocations: 22.58 kB / 477.4 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.4052, allocations: 3.938 kB / 477.4 MB, free: 16.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.4053, allocations: 15.34 kB / 477.4 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.4053, allocations: 3.688 kB / 477.4 MB, free: 16.34 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.0001382/0.4055, allocations: 121.9 kB / 477.5 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.747e-05/0.4055, allocations: 13.59 kB / 477.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003965/0.4059, allocations: 310.8 kB / 477.9 MB, free: 16.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002373/0.4062, allocations: 241.5 kB / 478.1 MB, free: 16.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.4062, allocations: 11.92 kB / 478.1 MB, free: 16.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.4062, allocations: 0 / 478.1 MB, free: 16.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.407, allocations: 0.7511 MB / 478.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4071, allocations: 8 kB / 478.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.4072, allocations: 38.2 kB / 478.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.4072, allocations: 4 kB / 478.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.4073, allocations: 3.938 kB / 478.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.4073, allocations: 4.75 kB / 478.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4073, allocations: 1.094 kB / 478.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004826/0.4078, allocations: 0.5215 MB / 479.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.308e-05/0.4079, allocations: 100.9 kB / 479.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.4079, allocations: 7.875 kB / 479.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.408, allocations: 6.672 kB / 479.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.241e-05/0.4081, allocations: 20.61 kB / 479.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.4081, allocations: 8 kB / 479.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.351e-05/0.4082, allocations: 93.27 kB / 479.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4082, allocations: 0 / 479.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003263/0.4114, allocations: 0.9274 MB / 480.6 MB, free: 13.75 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.006357/0.4178, allocations: 2.391 MB / 483 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004244/0.4183, allocations: 260 kB / 483.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4183, allocations: 0 / 483.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.4184, allocations: 129.4 kB / 483.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.4196, allocations: 144.9 kB / 483.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.424, allocations: 2.482 MB / 486 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.4243, allocations: 0.7367 MB / 486.7 MB, free: 7.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.4245, allocations: 41.89 kB / 486.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.4246, allocations: 63.42 kB / 486.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4246, allocations: 4 kB / 486.8 MB, free: 7.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05564/0.4803, allocations: 30.52 MB / 0.5052 GB, free: 9.414 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.4805, allocations: 207.9 kB / 0.5054 GB, free: 9.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/3.492, allocations: 0 / 0.5054 GB, free: 9.16 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)