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.007858/0.007858, allocations: 98.16 kB / 15.73 MB, free: 6.496 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.001701/0.001701, allocations: 194.9 kB / 16.67 MB, free: 6.391 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.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04691/0.04691, allocations: 9.099 MB / 279 MB, free: 12.09 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.001664/0.001664, allocations: 67.89 kB / 387 MB, free: 8.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3103, allocations: 48.17 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02559/0.336, allocations: 17.36 MB / 452.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01859/0.3546, allocations: 16.8 MB / 469.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.3549, allocations: 1.094 kB / 469.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.356, allocations: 301.9 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.02179/0.3778, allocations: 6.37 MB / 476 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.3801, allocations: 0.5831 MB / 476.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.3805, allocations: 191 kB / 476.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.21e-05/0.3806, allocations: 5.125 kB / 476.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.3808, allocations: 75.66 kB / 476.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.3809, allocations: 63.7 kB / 476.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.3809, allocations: 0 / 476.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02569/0.4066, allocations: 9.541 MB / 486.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.882e-05/0.4067, allocations: 19.91 kB / 486.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.4069, allocations: 59.67 kB / 486.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.4205, allocations: 4.014 MB / 490.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4206, allocations: 0 / 490.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4206, allocations: 0 / 490.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.4206, allocations: 0 / 490.5 MB, free: 9.281 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.002375/0.423, allocations: 0.9161 MB / 491.4 MB, free: 8.312 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.423, allocations: 12.03 kB / 491.4 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.783e-05/0.4231, allocations: 42.55 kB / 491.5 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.4233, allocations: 35.83 kB / 491.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.4236, allocations: 198.9 kB / 491.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.4236, allocations: 0 / 491.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.4237, allocations: 8 kB / 491.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002511/0.4239, allocations: 127.4 kB / 491.8 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.4239, allocations: 3.938 kB / 491.9 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.424, allocations: 7.875 kB / 491.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.424, allocations: 11.98 kB / 491.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001487/0.4241, allocations: 91.91 kB / 492 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008058/0.425, allocations: 0.5739 MB / 492.5 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.4253, allocations: 129.1 kB / 492.7 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.4254, allocations: 85.77 kB / 492.7 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0636/0.489, allocations: 33.16 MB / 0.5136 GB, free: 144 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.901e-05/0.4891, allocations: 42.55 kB / 0.5136 GB, free: 92 kB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 4.509e-06/0.4891, allocations: 0 / 0.5136 GB, free: 92 kB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008995/0.49, allocations: 225.5 kB / 0.5138 GB, free: 15.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.4901, allocations: 77.11 kB / 0.5139 GB, free: 15.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.4903, allocations: 121.8 kB / 0.514 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.4903, allocations: 33.69 kB / 0.5141 GB, free: 15.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.784e-05/0.4904, allocations: 92.53 kB / 0.5141 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.745e-05/0.4905, allocations: 83.17 kB / 0.5142 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.4905, allocations: 37.72 kB / 0.5143 GB, free: 15.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4907, allocations: 330.8 kB / 0.5146 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.814e-05/0.4908, allocations: 39.98 kB / 0.5146 GB, free: 15.01 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.4909, allocations: 73.69 kB / 0.5147 GB, free: 14.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.4911, allocations: 117.8 kB / 0.5148 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4911, allocations: 0 / 0.5148 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002639/0.4914, allocations: 173.5 kB / 0.515 GB, free: 14.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4914, allocations: 9.094 kB / 0.515 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.4914, allocations: 4 kB / 0.515 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.4914, allocations: 0 / 0.515 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.4915, allocations: 19.98 kB / 0.515 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.4916, allocations: 3.938 kB / 0.515 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.797e-05/0.4916, allocations: 11.89 kB / 0.515 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.4917, allocations: 8 kB / 0.515 GB, free: 14.58 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.0001155/0.4918, allocations: 117.8 kB / 0.5151 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.345e-05/0.4919, allocations: 7.953 kB / 0.5151 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004694/0.4923, allocations: 329.8 kB / 0.5155 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002892/0.4926, allocations: 237.4 kB / 0.5157 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4927, allocations: 4.125 kB / 0.5157 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.4927, allocations: 0 / 0.5157 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009344/0.4936, allocations: 0.7658 MB / 0.5164 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.4936, allocations: 0 / 0.5164 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.4938, allocations: 35.98 kB / 0.5165 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.4938, allocations: 4 kB / 0.5165 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.4938, allocations: 4 kB / 0.5165 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.4939, allocations: 7.984 kB / 0.5165 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4939, allocations: 0 / 0.5165 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.4944, allocations: 0.5376 MB / 0.517 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.4945, allocations: 92.98 kB / 0.5171 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.4945, allocations: 8 kB / 0.5171 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.4947, allocations: 0 / 0.5171 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.4947, allocations: 15.98 kB / 0.5171 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.4947, allocations: 7.984 kB / 0.5171 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.916e-05/0.4948, allocations: 95.28 kB / 0.5172 GB, free: 12.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4948, allocations: 288 / 0.5172 GB, free: 12.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003315/0.4981, allocations: 0.9462 MB / 0.5181 GB, free: 11.27 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.005293/0.5034, allocations: 2.42 MB / 0.5205 GB, free: 8.824 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004833/0.504, allocations: 255.2 kB / 0.5207 GB, free: 8.562 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.504, allocations: 0 / 0.5207 GB, free: 8.562 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.5042, allocations: 116.7 kB / 0.5209 GB, free: 8.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.5052, allocations: 144.8 kB / 0.521 GB, free: 8.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/0.5091, allocations: 2.446 MB / 0.5234 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.5096, allocations: 0.7328 MB / 0.5241 GB, free: 5.008 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002317/0.5098, allocations: 49.97 kB / 0.5241 GB, free: 4.961 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.51, allocations: 59.42 kB / 0.5242 GB, free: 4.902 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.51, allocations: 0 / 0.5242 GB, free: 4.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06651/0.5765, allocations: 30.65 MB / 0.5541 GB, free: 6.242 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.201/9.777, allocations: 7.797 kB / 0.5541 GB, free: 6.234 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium_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_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1)