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.009708/0.009708, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.001802/0.001802, allocations: 187 kB / 16.67 MB, free: 5.883 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.42/1.42, allocations: 205.1 MB / 222.6 MB, free: 4.348 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04835/0.04835, allocations: 9.1 MB / 279 MB, free: 11.92 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.0014/0.0014, allocations: 63.91 kB / 387 MB, free: 8.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.262, allocations: 48.16 MB / 435.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.0202/0.2822, allocations: 17.35 MB / 452.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02486/0.3072, allocations: 16.81 MB / 469.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.3074, allocations: 0 / 469.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.3086, allocations: 302.4 kB / 469.6 MB, free: 12.51 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.0284/0.337, allocations: 6.366 MB / 476 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002358/0.3394, allocations: 0.583 MB / 476.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.3397, allocations: 191 kB / 476.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.815e-05/0.3398, allocations: 9.109 kB / 476.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.34, allocations: 83.64 kB / 476.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.3401, allocations: 47.78 kB / 476.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.3401, allocations: 4 kB / 476.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02677/0.3669, allocations: 9.548 MB / 486.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.367, allocations: 15.91 kB / 486.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.3672, allocations: 55.75 kB / 486.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01728/0.3845, allocations: 4.003 MB / 490.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3846, allocations: 0 / 490.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3846, allocations: 0 / 490.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3846, allocations: 0 / 490.5 MB, free: 9.305 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.002363/0.387, allocations: 0.8889 MB / 491.4 MB, free: 8.367 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.387, allocations: 8.031 kB / 491.4 MB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.995e-05/0.3871, allocations: 46.48 kB / 491.4 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.3874, allocations: 27.83 kB / 491.5 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.3877, allocations: 198.8 kB / 491.7 MB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.3877, allocations: 8 kB / 491.7 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.3878, allocations: 4 kB / 491.7 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.388, allocations: 135.2 kB / 491.8 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3881, allocations: 0 / 491.8 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3881, allocations: 7.938 kB / 491.8 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.3881, allocations: 4 kB / 491.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.3883, allocations: 95.95 kB / 491.9 MB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008764/0.3892, allocations: 0.5777 MB / 492.5 MB, free: 7.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.3896, allocations: 129.1 kB / 492.6 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.3898, allocations: 81.77 kB / 492.7 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.066/0.4558, allocations: 33.16 MB / 0.5135 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.4559, allocations: 42.5 kB / 0.5136 GB, free: 156 kB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 7.284e-06/0.4559, allocations: 3.984 kB / 0.5136 GB, free: 152 kB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007565/0.4567, allocations: 241.8 kB / 0.5138 GB, free: 15.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.4567, allocations: 77.11 kB / 0.5139 GB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.4569, allocations: 117.8 kB / 0.514 GB, free: 15.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.4569, allocations: 25.7 kB / 0.514 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.457, allocations: 92.5 kB / 0.5141 GB, free: 15.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.84e-05/0.457, allocations: 74.91 kB / 0.5142 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.4571, allocations: 41.7 kB / 0.5142 GB, free: 15.44 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4572, allocations: 330.8 kB / 0.5145 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.596e-05/0.4573, allocations: 43.98 kB / 0.5146 GB, free: 15.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.901e-05/0.4574, allocations: 61.69 kB / 0.5146 GB, free: 15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.4576, allocations: 129.8 kB / 0.5148 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.4576, allocations: 0 / 0.5148 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002653/0.4579, allocations: 161.9 kB / 0.5149 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.4579, allocations: 8 kB / 0.5149 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.4579, allocations: 4 kB / 0.5149 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.458, allocations: 0 / 0.5149 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.052e-05/0.4581, allocations: 23.88 kB / 0.5149 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.4581, allocations: 3.984 kB / 0.5149 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.002e-05/0.4582, allocations: 15.84 kB / 0.515 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.4582, allocations: 4 kB / 0.515 GB, free: 14.64 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.000108/0.4583, allocations: 117.8 kB / 0.5151 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.929e-05/0.4584, allocations: 7.906 kB / 0.5151 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004885/0.4589, allocations: 328.7 kB / 0.5154 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003117/0.4592, allocations: 233.5 kB / 0.5156 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4592, allocations: 0 / 0.5156 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4592, allocations: 7.984 kB / 0.5156 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000973/0.4602, allocations: 0.7544 MB / 0.5164 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4602, allocations: 0 / 0.5164 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.4604, allocations: 43.92 kB / 0.5164 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4604, allocations: 0 / 0.5164 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.4604, allocations: 4 kB / 0.5164 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.4604, allocations: 0 / 0.5164 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4604, allocations: 4 kB / 0.5164 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005514/0.461, allocations: 0.5337 MB / 0.5169 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.651e-05/0.4611, allocations: 96.84 kB / 0.517 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.4611, allocations: 4 kB / 0.517 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.4612, allocations: 8 kB / 0.517 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.956e-05/0.4613, allocations: 11.98 kB / 0.5171 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.4613, allocations: 11.94 kB / 0.5171 GB, free: 12.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.611e-05/0.4613, allocations: 99.2 kB / 0.5172 GB, free: 12.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4613, allocations: 0 / 0.5172 GB, free: 12.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002458/0.4638, allocations: 0.9291 MB / 0.5181 GB, free: 11.36 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.004934/0.4688, allocations: 2.388 MB / 0.5204 GB, free: 8.941 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003854/0.4692, allocations: 263.2 kB / 0.5207 GB, free: 8.672 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4692, allocations: 0 / 0.5207 GB, free: 8.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.4693, allocations: 119.8 kB / 0.5208 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000907/0.4702, allocations: 150.2 kB / 0.5209 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.4737, allocations: 2.418 MB / 0.5233 GB, free: 5.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.4741, allocations: 0.7328 MB / 0.524 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.4743, allocations: 45.84 kB / 0.524 GB, free: 5.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.4744, allocations: 67.41 kB / 0.5241 GB, free: 5.031 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4744, allocations: 0 / 0.5241 GB, free: 5.031 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06228/0.5367, allocations: 30.65 MB / 0.554 GB, free: 6.371 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.882/9.419, allocations: 14.23 kB / 0.554 GB, free: 6.359 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)