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.006472/0.006472, allocations: 104.6 kB / 15.74 MB, free: 6.484 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.001139/0.001139, allocations: 189.1 kB / 16.67 MB, free: 6.379 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.541/1.541, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04937/0.04937, allocations: 9.099 MB / 279 MB, free: 12.07 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.001761/0.001761, allocations: 72.12 kB / 387 MB, free: 8.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3328, allocations: 48.15 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01753/0.3504, allocations: 17.36 MB / 452.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.368, allocations: 16.8 MB / 469.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.3682, allocations: 0 / 469.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007957/0.369, allocations: 265 kB / 469.6 MB, free: 12.55 MB / 350.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.0185/0.3875, allocations: 6.033 MB / 475.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.3895, allocations: 0.544 MB / 476.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.3898, allocations: 183 kB / 476.3 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.247e-05/0.3898, allocations: 13.11 kB / 476.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.39, allocations: 75.64 kB / 476.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.3901, allocations: 59.72 kB / 476.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.3901, allocations: 4 kB / 476.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0181/0.4083, allocations: 9.537 MB / 486 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.667e-05/0.4083, allocations: 23.84 kB / 486 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.4085, allocations: 55.75 kB / 486.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.4213, allocations: 4.003 MB / 490.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4213, allocations: 0 / 490.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4214, allocations: 0 / 490.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.4214, allocations: 0 / 490.1 MB, free: 9.727 MB / 366.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.001981/0.4234, allocations: 0.8889 MB / 491 MB, free: 8.789 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4234, allocations: 12.03 kB / 491 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.261e-05/0.4235, allocations: 38.56 kB / 491 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.4236, allocations: 31.81 kB / 491.1 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.4239, allocations: 198.8 kB / 491.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.4239, allocations: 4 kB / 491.3 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.4239, allocations: 12 kB / 491.3 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.4241, allocations: 127.3 kB / 491.4 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4242, allocations: 0 / 491.4 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.4242, allocations: 11.92 kB / 491.4 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.4242, allocations: 4 kB / 491.4 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.4243, allocations: 99.89 kB / 491.5 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.425, allocations: 0.5739 MB / 492.1 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.4253, allocations: 129.1 kB / 492.2 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.4254, allocations: 81.75 kB / 492.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06114/0.4865, allocations: 33.17 MB / 0.5131 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.4866, allocations: 34.56 kB / 0.5132 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 6.151e-06/0.4866, allocations: 0 / 0.5132 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006575/0.4873, allocations: 237.8 kB / 0.5134 GB, free: 348 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.4874, allocations: 81.05 kB / 0.5135 GB, free: 248 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/0.4875, allocations: 117.8 kB / 0.5136 GB, free: 120 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.4875, allocations: 33.7 kB / 0.5136 GB, free: 80 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.4876, allocations: 92.52 kB / 0.5137 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.334e-05/0.4877, allocations: 74.89 kB / 0.5138 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.4877, allocations: 33.7 kB / 0.5138 GB, free: 15.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4878, allocations: 334.8 kB / 0.5141 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.128e-05/0.4879, allocations: 39.98 kB / 0.5142 GB, free: 15.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.247e-05/0.488, allocations: 69.69 kB / 0.5142 GB, free: 15.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.4882, allocations: 117.7 kB / 0.5143 GB, free: 15.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4882, allocations: 0 / 0.5143 GB, free: 15.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002541/0.4885, allocations: 169.5 kB / 0.5145 GB, free: 15.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4885, allocations: 8 kB / 0.5145 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.4885, allocations: 0 / 0.5145 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.4885, allocations: 0 / 0.5145 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.131e-05/0.4886, allocations: 23.94 kB / 0.5145 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.4886, allocations: 384 / 0.5145 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.853e-05/0.4887, allocations: 11.84 kB / 0.5145 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.4887, allocations: 8.109 kB / 0.5146 GB, free: 15.07 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 0.0001041/0.4888, allocations: 125.8 kB / 0.5147 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.924e-05/0.4889, allocations: 15.84 kB / 0.5147 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.4894, allocations: 316.8 kB / 0.515 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000274/0.4896, allocations: 241.4 kB / 0.5152 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4897, allocations: 4 kB / 0.5152 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.4897, allocations: 3.984 kB / 0.5152 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009014/0.4906, allocations: 0.7501 MB / 0.516 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4906, allocations: 0 / 0.516 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.4907, allocations: 39.98 kB / 0.516 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.4908, allocations: 4 kB / 0.516 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.4908, allocations: 4 kB / 0.516 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.4908, allocations: 4 kB / 0.516 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.4908, allocations: 3.938 kB / 0.516 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005254/0.4913, allocations: 0.5336 MB / 0.5165 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.4914, allocations: 92.89 kB / 0.5166 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.4914, allocations: 11.97 kB / 0.5166 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.4916, allocations: 4 kB / 0.5166 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.4916, allocations: 15.98 kB / 0.5167 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.4916, allocations: 4 kB / 0.5167 GB, free: 12.81 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.93e-05/0.4917, allocations: 107.3 kB / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4917, allocations: 0 / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002449/0.4941, allocations: 0.9252 MB / 0.5177 GB, free: 11.78 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.005612/0.4998, allocations: 2.388 MB / 0.52 GB, free: 9.363 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.5002, allocations: 259.7 kB / 0.5202 GB, free: 9.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5002, allocations: 0 / 0.5202 GB, free: 9.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.5003, allocations: 115.9 kB / 0.5204 GB, free: 8.984 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009311/0.5013, allocations: 148.6 kB / 0.5205 GB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.5046, allocations: 2.419 MB / 0.5229 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.505, allocations: 0.7289 MB / 0.5236 GB, free: 5.574 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.5051, allocations: 49.97 kB / 0.5236 GB, free: 5.527 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.5052, allocations: 67.42 kB / 0.5237 GB, free: 5.461 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5052, allocations: 3.938 kB / 0.5237 GB, free: 5.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08418/0.5894, allocations: 30.73 MB / 0.5537 GB, free: 6.723 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.738/9.328, allocations: 14.23 kB / 0.5537 GB, free: 6.711 MB / 446.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)