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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 90] 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"}) [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 111.1 kB / 16.62 MB, free: 5.586 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.001833/0.001833, allocations: 188.7 kB / 17.61 MB, free: 4.762 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.585/1.585, allocations: 207.6 MB / 226 MB, free: 11.19 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05203/0.05203, allocations: 9.149 MB / 285.1 MB, free: 15.59 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.002179/0.002179, allocations: 71.52 kB / 398.7 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08624, allocations: 50.73 MB / 449.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.02201/0.1082, allocations: 17.47 MB / 466.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.1261, allocations: 16.95 MB / 483.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.1263, allocations: 0 / 483.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008095/0.1271, allocations: 327 kB / 484.2 MB, free: 12 MB / 366.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.01697/0.144, allocations: 6.445 MB / 490.6 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.146, allocations: 0.6143 MB / 491.3 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.1464, allocations: 199 kB / 491.4 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.732e-05/0.1464, allocations: 9.125 kB / 491.5 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.1466, allocations: 91.64 kB / 491.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.1467, allocations: 55.7 kB / 491.6 MB, free: 4.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.1468, allocations: 8 kB / 491.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01922/0.166, allocations: 10.09 MB / 0.4899 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.451e-05/0.166, allocations: 19.86 kB / 0.49 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.75e-05/0.1661, allocations: 51.75 kB / 0.49 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.1787, allocations: 4.029 MB / 0.4939 GB, free: 6.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.1787, allocations: 4 kB / 0.4939 GB, free: 6.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1787, allocations: 0 / 0.4939 GB, free: 6.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1787, allocations: 4 kB / 0.4939 GB, free: 6.344 MB / 382.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.002112/0.1808, allocations: 0.9161 MB / 0.4948 GB, free: 5.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1809, allocations: 8.031 kB / 0.4948 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.1809, allocations: 42.55 kB / 0.4949 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.1811, allocations: 35.83 kB / 0.4949 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.1814, allocations: 202.8 kB / 0.4951 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.1814, allocations: 8 kB / 0.4951 GB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.1814, allocations: 7.984 kB / 0.4951 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002218/0.1816, allocations: 127.4 kB / 0.4953 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1816, allocations: 0 / 0.4953 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.1816, allocations: 7.938 kB / 0.4953 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.1817, allocations: 3.984 kB / 0.4953 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1818, allocations: 103.9 kB / 0.4954 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007223/0.1825, allocations: 0.566 MB / 0.4959 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.1828, allocations: 117.1 kB / 0.496 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.1829, allocations: 65.77 kB / 0.4961 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3109/0.4938, allocations: 33.17 MB / 0.5285 GB, free: 87.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.4938, allocations: 36.78 kB / 0.5285 GB, free: 87.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.404e-06/0.4938, allocations: 0 / 0.5285 GB, free: 87.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007125/0.4945, allocations: 228.9 kB / 0.5287 GB, free: 87.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.4946, allocations: 78.48 kB / 0.5288 GB, free: 87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.4946, allocations: 122.9 kB / 0.5289 GB, free: 86.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.4947, allocations: 30.02 kB / 0.529 GB, free: 86.87 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.4947, allocations: 88.06 kB / 0.529 GB, free: 86.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.481e-05/0.4948, allocations: 87.47 kB / 0.5291 GB, free: 86.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.218e-05/0.4948, allocations: 36.94 kB / 0.5292 GB, free: 86.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.684e-05/0.4949, allocations: 327.6 kB / 0.5295 GB, free: 86.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.676e-05/0.495, allocations: 42.84 kB / 0.5295 GB, free: 86.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.469e-05/0.4951, allocations: 67.53 kB / 0.5296 GB, free: 86.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.4952, allocations: 120.2 kB / 0.5297 GB, free: 86.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.4952, allocations: 0 / 0.5297 GB, free: 86.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002286/0.4955, allocations: 165.1 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4955, allocations: 4.438 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4955, allocations: 3.125 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.4955, allocations: 4.781 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.417e-05/0.4956, allocations: 18.41 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.4956, allocations: 2.203 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.175e-05/0.4957, allocations: 11.53 kB / 0.5299 GB, free: 86.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.4957, allocations: 4.406 kB / 0.5299 GB, free: 86.35 MB / 414.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 7.35e-05/0.4958, allocations: 126.2 kB / 0.53 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.4958, allocations: 18.16 kB / 0.53 GB, free: 86.22 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004606/0.4963, allocations: 309.1 kB / 0.5303 GB, free: 86.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003148/0.4966, allocations: 247.6 kB / 0.5306 GB, free: 86.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.4966, allocations: 0.7969 kB / 0.5306 GB, free: 86.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.4966, allocations: 5.594 kB / 0.5306 GB, free: 86.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000906/0.4975, allocations: 0.7566 MB / 0.5313 GB, free: 85.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.4975, allocations: 1.125 kB / 0.5313 GB, free: 85.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.4977, allocations: 36.81 kB / 0.5313 GB, free: 85.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4977, allocations: 6.281 kB / 0.5314 GB, free: 85.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.4977, allocations: 8.344 kB / 0.5314 GB, free: 85.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4977, allocations: 4.719 kB / 0.5314 GB, free: 85.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4977, allocations: 1.125 kB / 0.5314 GB, free: 85.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.4982, allocations: 0.5208 MB / 0.5319 GB, free: 85.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.4983, allocations: 98.2 kB / 0.532 GB, free: 85.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.4983, allocations: 6.719 kB / 0.532 GB, free: 85.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.4984, allocations: 6.062 kB / 0.532 GB, free: 85.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.4985, allocations: 17.12 kB / 0.532 GB, free: 85.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.4985, allocations: 10.41 kB / 0.532 GB, free: 85.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.279e-05/0.4985, allocations: 95.03 kB / 0.5321 GB, free: 85.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4985, allocations: 0 / 0.5321 GB, free: 85.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002764/0.5013, allocations: 0.9455 MB / 0.533 GB, free: 85.14 MB / 414.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.005557/0.5068, allocations: 2.425 MB / 0.5354 GB, free: 84.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004959/0.5073, allocations: 225.4 kB / 0.5356 GB, free: 83.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5073, allocations: 0 / 0.5356 GB, free: 83.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.5075, allocations: 110.3 kB / 0.5357 GB, free: 83.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.5085, allocations: 147.9 kB / 0.5359 GB, free: 83.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/0.5126, allocations: 2.439 MB / 0.5382 GB, free: 82.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.5129, allocations: 0.7363 MB / 0.539 GB, free: 81.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.5131, allocations: 45.53 kB / 0.539 GB, free: 81.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.5132, allocations: 61.88 kB / 0.5391 GB, free: 81.34 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5132, allocations: 4.75 kB / 0.5391 GB, free: 81.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0645/0.5777, allocations: 30.77 MB / 0.5691 GB, free: 56.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.348/9.926, allocations: 7.453 kB / 0.5691 GB, free: 56.33 MB / 414.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.002 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1) [Timeout 52.5]