Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 106.4 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 224.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 207.6 MB / 233 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05266/0.05266, allocations: 9.155 MB / 294.4 MB, free: 12.69 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 72.66 kB / 411.1 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06605/0.06826, allocations: 50.77 MB / 461.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02164/0.0899, allocations: 17.53 MB / 479.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.1085, allocations: 16.96 MB / 496.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1086, allocations: 0 / 496.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007478/0.1094, allocations: 319.2 kB / 496.6 MB, free: 9.777 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.01754/0.1269, allocations: 6.714 MB / 0.4916 GB, free: 3.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.1284, allocations: 0.6182 MB / 0.4922 GB, free: 2.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002798/0.1287, allocations: 207 kB / 0.4924 GB, free: 2.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.462e-05/0.1287, allocations: 9.297 kB / 0.4924 GB, free: 2.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.1289, allocations: 87.59 kB / 0.4925 GB, free: 2.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.129, allocations: 55.78 kB / 0.4925 GB, free: 2.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.129, allocations: 7.938 kB / 0.4925 GB, free: 2.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01873/0.1478, allocations: 10.96 MB / 0.5032 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.878e-05/0.1478, allocations: 15.92 kB / 0.5032 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.818e-05/0.1479, allocations: 59.73 kB / 0.5033 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.1584, allocations: 4.15 MB / 0.5073 GB, free: 2.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1584, allocations: 4 kB / 0.5073 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1584, allocations: 0 / 0.5073 GB, free: 2.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1584, allocations: 0 / 0.5073 GB, free: 2.855 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.001779/0.1602, allocations: 0.8486 MB / 0.5082 GB, free: 1.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1602, allocations: 11.98 kB / 0.5082 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.1603, allocations: 42.55 kB / 0.5082 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.1604, allocations: 31.83 kB / 0.5083 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.1607, allocations: 137 kB / 0.5084 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.1607, allocations: 12 kB / 0.5084 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.1607, allocations: 4 kB / 0.5084 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.1609, allocations: 132.9 kB / 0.5085 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1609, allocations: 0 / 0.5085 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.1609, allocations: 11.88 kB / 0.5085 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.161, allocations: 3.984 kB / 0.5085 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.1611, allocations: 103.9 kB / 0.5086 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007525/0.1619, allocations: 0.5456 MB / 0.5092 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.1621, allocations: 121.1 kB / 0.5093 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1622, allocations: 57.77 kB / 0.5093 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05323/0.2155, allocations: 10.89 MB / 0.52 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.2155, allocations: 38.56 kB / 0.52 GB, free: 5.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.675e-06/0.2155, allocations: 4 kB / 0.52 GB, free: 5.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000727/0.2162, allocations: 225.4 kB / 0.5202 GB, free: 5.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.2163, allocations: 81.11 kB / 0.5203 GB, free: 5.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.2164, allocations: 121.7 kB / 0.5204 GB, free: 5.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.2164, allocations: 29.7 kB / 0.5205 GB, free: 5.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.2165, allocations: 92.52 kB / 0.5205 GB, free: 5.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.798e-05/0.2166, allocations: 79.28 kB / 0.5206 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.835e-05/0.2166, allocations: 37.7 kB / 0.5207 GB, free: 4.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.2168, allocations: 338.8 kB / 0.521 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.2169, allocations: 39.98 kB / 0.521 GB, free: 4.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.596e-05/0.217, allocations: 69.69 kB / 0.5211 GB, free: 4.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.2172, allocations: 117.6 kB / 0.5212 GB, free: 4.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2172, allocations: 0 / 0.5212 GB, free: 4.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003004/0.2175, allocations: 173.5 kB / 0.5214 GB, free: 4.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.2175, allocations: 4 kB / 0.5214 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2175, allocations: 0 / 0.5214 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.2175, allocations: 4 kB / 0.5214 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.947e-05/0.2176, allocations: 27.92 kB / 0.5214 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2176, allocations: 4 kB / 0.5214 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.272e-05/0.2177, allocations: 7.891 kB / 0.5214 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2177, allocations: 4 kB / 0.5214 GB, free: 4.172 MB / 398.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.0001086/0.2178, allocations: 121.8 kB / 0.5215 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.917e-05/0.2179, allocations: 12.08 kB / 0.5215 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004819/0.2184, allocations: 321.7 kB / 0.5218 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003162/0.2187, allocations: 241.5 kB / 0.5221 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2187, allocations: 7.938 kB / 0.5221 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2187, allocations: 3.984 kB / 0.5221 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.2197, allocations: 0.7261 MB / 0.5228 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2197, allocations: 0 / 0.5228 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.2199, allocations: 43.98 kB / 0.5228 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.2199, allocations: 4 kB / 0.5228 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.2199, allocations: 7.984 kB / 0.5228 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.2199, allocations: 4 kB / 0.5229 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2199, allocations: 0 / 0.5229 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006461/0.2205, allocations: 0.5341 MB / 0.5234 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.2206, allocations: 23.81 kB / 0.5234 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.2206, allocations: 8.062 kB / 0.5234 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.2207, allocations: 0 / 0.5234 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.2208, allocations: 23.97 kB / 0.5234 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.2208, allocations: 4.375 kB / 0.5234 GB, free: 2.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.559e-05/0.2209, allocations: 103.2 kB / 0.5235 GB, free: 1.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2209, allocations: 0 / 0.5235 GB, free: 1.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002513/0.2234, allocations: 0.9385 MB / 0.5244 GB, free: 0.9805 MB / 398.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.1793/0.4027, allocations: 2.442 MB / 0.5268 GB, free: 71.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004024/0.4031, allocations: 233.5 kB / 0.5271 GB, free: 71.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4031, allocations: 0 / 0.5271 GB, free: 71.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.4032, allocations: 109.4 kB / 0.5272 GB, free: 71.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009474/0.4042, allocations: 136.7 kB / 0.5273 GB, free: 71.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003029/0.4072, allocations: 2.45 MB / 0.5297 GB, free: 69.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.4074, allocations: 0.741 MB / 0.5304 GB, free: 68.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00018/0.4076, allocations: 49.2 kB / 0.5305 GB, free: 68.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.685e-05/0.4077, allocations: 63.84 kB / 0.5305 GB, free: 68.93 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4077, allocations: 1.688 kB / 0.5305 GB, free: 68.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06469/0.4724, allocations: 31.17 MB / 0.561 GB, free: 47.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.14, allocations: 4 kB / 0.561 GB, free: 47.71 MB / 398.1 MB " [Timeout remaining time 647] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.021029002033174] Failed to read output from testmodel.py, exit status != 0: 13.266408358933404 13.283419322 13.121705955 Calling exit ...