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.008151/0.008151, allocations: 103.1 kB / 15.73 MB, free: 6.051 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.001703/0.001703, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.379/1.379, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0475/0.0475, allocations: 9.099 MB / 279 MB, free: 12.06 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.001674/0.001674, allocations: 68.12 kB / 387 MB, free: 8.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3388, allocations: 48.16 MB / 435.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.02088/0.3598, allocations: 17.42 MB / 452.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0187/0.3785, allocations: 16.91 MB / 469.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.824e-05/0.3786, allocations: 1.375 kB / 469.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009408/0.3796, allocations: 277.9 kB / 469.8 MB, free: 12.62 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.0207/0.4004, allocations: 6.119 MB / 475.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.4023, allocations: 0.5713 MB / 476.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.4025, allocations: 199 kB / 476.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.256e-05/0.4026, allocations: 5.125 kB / 476.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.4027, allocations: 91.62 kB / 476.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.4029, allocations: 55.72 kB / 476.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.4029, allocations: 4 kB / 476.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02022/0.4231, allocations: 9.938 MB / 486.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.747e-05/0.4232, allocations: 11.92 kB / 486.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.4233, allocations: 59.72 kB / 486.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.4363, allocations: 4.011 MB / 490.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4363, allocations: 0 / 490.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4363, allocations: 0 / 490.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.4363, allocations: 0 / 490.8 MB, free: 9.148 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.002128/0.4385, allocations: 0.8967 MB / 491.7 MB, free: 8.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.4385, allocations: 12.03 kB / 491.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.852e-05/0.4386, allocations: 38.55 kB / 491.8 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.4388, allocations: 31.83 kB / 491.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.439, allocations: 194.8 kB / 492 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.203e-06/0.439, allocations: 0 / 492 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.439, allocations: 8 kB / 492 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.4393, allocations: 135.3 kB / 492.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.4393, allocations: 7.938 kB / 492.1 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.4393, allocations: 7.938 kB / 492.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4393, allocations: 4 kB / 492.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.4395, allocations: 95.94 kB / 492.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006975/0.4402, allocations: 0.5737 MB / 492.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.4404, allocations: 133.1 kB / 492.9 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.4406, allocations: 77.77 kB / 493 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06046/0.501, allocations: 33.17 MB / 0.5138 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.02e-05/0.5011, allocations: 34.5 kB / 0.5139 GB, free: 15.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 4.017e-06/0.5012, allocations: 0 / 0.5139 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008103/0.502, allocations: 237.3 kB / 0.5141 GB, free: 15.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.502, allocations: 81.05 kB / 0.5142 GB, free: 15.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.5022, allocations: 121.8 kB / 0.5143 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.5022, allocations: 25.7 kB / 0.5143 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/0.5023, allocations: 92.56 kB / 0.5144 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.597e-05/0.5024, allocations: 74.84 kB / 0.5145 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.682e-05/0.5024, allocations: 37.7 kB / 0.5145 GB, free: 15.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5026, allocations: 326.8 kB / 0.5148 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.043e-05/0.5027, allocations: 48.05 kB / 0.5149 GB, free: 14.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.5028, allocations: 65.69 kB / 0.5149 GB, free: 14.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.503, allocations: 125.8 kB / 0.5151 GB, free: 14.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.503, allocations: 0 / 0.5151 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002926/0.5033, allocations: 165.5 kB / 0.5152 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.5033, allocations: 8 kB / 0.5152 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5033, allocations: 0 / 0.5152 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.5034, allocations: 0 / 0.5152 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.5035, allocations: 19.94 kB / 0.5152 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.5035, allocations: 3.984 kB / 0.5152 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.863e-05/0.5036, allocations: 15.84 kB / 0.5153 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.5036, allocations: 8 kB / 0.5153 GB, free: 14.48 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.0001449/0.5038, allocations: 117.8 kB / 0.5154 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.22e-05/0.5038, allocations: 11.91 kB / 0.5154 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000514/0.5044, allocations: 313.8 kB / 0.5157 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003127/0.5047, allocations: 245.4 kB / 0.5159 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.5047, allocations: 4 kB / 0.5159 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.443e-06/0.5047, allocations: 7.984 kB / 0.5159 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.5057, allocations: 0.7501 MB / 0.5167 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5058, allocations: 0 / 0.5167 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.5059, allocations: 39.92 kB / 0.5167 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.5059, allocations: 4 kB / 0.5167 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.506, allocations: 4 kB / 0.5167 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.506, allocations: 4 kB / 0.5167 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.506, allocations: 4 kB / 0.5167 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/0.5066, allocations: 0.5297 MB / 0.5172 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.477e-05/0.5067, allocations: 100.8 kB / 0.5173 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.5067, allocations: 8 kB / 0.5173 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.5068, allocations: 4 kB / 0.5174 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.197e-05/0.5069, allocations: 15.97 kB / 0.5174 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.5069, allocations: 8.062 kB / 0.5174 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.272e-05/0.507, allocations: 103.2 kB / 0.5175 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.507, allocations: 0 / 0.5175 GB, free: 12.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003266/0.5103, allocations: 0.9291 MB / 0.5184 GB, free: 11.2 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.005629/0.5159, allocations: 2.384 MB / 0.5207 GB, free: 8.781 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004325/0.5164, allocations: 255.5 kB / 0.521 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5164, allocations: 0 / 0.521 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.5165, allocations: 120.1 kB / 0.5211 GB, free: 8.402 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009726/0.5175, allocations: 148.4 kB / 0.5212 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.5214, allocations: 2.422 MB / 0.5236 GB, free: 5.742 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.5218, allocations: 0.7289 MB / 0.5243 GB, free: 4.988 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001775/0.522, allocations: 53.97 kB / 0.5243 GB, free: 4.938 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.5221, allocations: 59.42 kB / 0.5244 GB, free: 4.879 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5221, allocations: 0 / 0.5244 GB, free: 4.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.175/0.6971, allocations: 30.58 MB / 0.5543 GB, free: 6.289 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.109/9.807, allocations: 7.797 kB / 0.5543 GB, free: 6.281 MB / 446.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)