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.001425/0.001425, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002136/0.002136, allocations: 215.5 kB / 22.25 MB, free: 5.082 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.522/1.522, allocations: 207.6 MB / 233 MB, free: 10 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.05389/0.05389, allocations: 9.167 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.002131/0.002131, allocations: 80.52 kB / 411.1 MB, free: 46.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08766, allocations: 50.75 MB / 461.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02369/0.1113, allocations: 17.52 MB / 479.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01884/0.1302, allocations: 16.95 MB / 496.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1303, allocations: 4 kB / 496.3 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007823/0.1311, allocations: 319.1 kB / 496.6 MB, free: 9.648 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.01899/0.1501, allocations: 6.71 MB / 0.4916 GB, free: 2.926 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.1517, allocations: 0.6221 MB / 0.4922 GB, free: 2.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.152, allocations: 199 kB / 0.4924 GB, free: 2.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.369e-05/0.152, allocations: 5.312 kB / 0.4924 GB, free: 2.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.1522, allocations: 95.58 kB / 0.4925 GB, free: 2.008 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.1523, allocations: 67.7 kB / 0.4925 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.1523, allocations: 4 kB / 0.4925 GB, free: 1.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01993/0.1723, allocations: 10.95 MB / 0.5032 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.099e-05/0.1723, allocations: 19.84 kB / 0.5032 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.1724, allocations: 55.73 kB / 0.5033 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.1855, allocations: 4.15 MB / 0.5073 GB, free: 2.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1855, allocations: 0 / 0.5073 GB, free: 2.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1855, allocations: 0 / 0.5073 GB, free: 2.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.1856, allocations: 0 / 0.5073 GB, free: 2.73 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.002387/0.1879, allocations: 0.8485 MB / 0.5082 GB, free: 1.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.134e-05/0.188, allocations: 15.98 kB / 0.5082 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.512e-05/0.188, allocations: 38.55 kB / 0.5082 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.1882, allocations: 39.83 kB / 0.5083 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.1884, allocations: 133.1 kB / 0.5084 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1885, allocations: 4 kB / 0.5084 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.1885, allocations: 11.94 kB / 0.5084 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1887, allocations: 129.3 kB / 0.5085 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1887, allocations: 0 / 0.5085 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.1887, allocations: 7.938 kB / 0.5085 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1887, allocations: 7.984 kB / 0.5085 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1889, allocations: 95.95 kB / 0.5086 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007106/0.1896, allocations: 0.5611 MB / 0.5092 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.1898, allocations: 113.1 kB / 0.5093 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.19, allocations: 73.75 kB / 0.5094 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05089/0.2408, allocations: 10.87 MB / 0.52 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.2409, allocations: 34.56 kB / 0.52 GB, free: 5.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.2409, allocations: 0 / 0.52 GB, free: 5.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006679/0.2416, allocations: 238 kB / 0.5202 GB, free: 5.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.2416, allocations: 77.11 kB / 0.5203 GB, free: 5.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.2417, allocations: 121.8 kB / 0.5204 GB, free: 5.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.2418, allocations: 29.64 kB / 0.5205 GB, free: 5.059 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.756e-05/0.2418, allocations: 96.52 kB / 0.5205 GB, free: 4.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.191e-05/0.2419, allocations: 83.27 kB / 0.5206 GB, free: 4.875 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-05/0.242, allocations: 37.7 kB / 0.5207 GB, free: 4.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.2422, allocations: 330.8 kB / 0.521 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.294e-05/0.2423, allocations: 47.98 kB / 0.521 GB, free: 4.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.873e-05/0.2424, allocations: 69.62 kB / 0.5211 GB, free: 4.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.2426, allocations: 114.7 kB / 0.5212 GB, free: 4.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2426, allocations: 0 / 0.5212 GB, free: 4.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002733/0.2428, allocations: 173.6 kB / 0.5214 GB, free: 4.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.2429, allocations: 12 kB / 0.5214 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2429, allocations: 0 / 0.5214 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2429, allocations: 0 / 0.5214 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.27e-05/0.243, allocations: 19.98 kB / 0.5214 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.243, allocations: 4 kB / 0.5214 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.799e-05/0.2431, allocations: 11.89 kB / 0.5214 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.2431, allocations: 4 kB / 0.5214 GB, free: 4.035 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.0001227/0.2432, allocations: 121.7 kB / 0.5215 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/0.2433, allocations: 15.95 kB / 0.5215 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004883/0.2437, allocations: 313.2 kB / 0.5218 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003194/0.2441, allocations: 237.5 kB / 0.5221 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2441, allocations: 0 / 0.5221 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2441, allocations: 7.984 kB / 0.5221 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.2451, allocations: 0.7337 MB / 0.5228 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.2451, allocations: 0 / 0.5228 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.2453, allocations: 43.92 kB / 0.5228 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.2453, allocations: 0 / 0.5228 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.2453, allocations: 7.984 kB / 0.5228 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2453, allocations: 0 / 0.5228 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2453, allocations: 4 kB / 0.5228 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/0.246, allocations: 0.538 MB / 0.5234 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.246, allocations: 19.81 kB / 0.5234 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.246, allocations: 8 kB / 0.5234 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.2462, allocations: 4.125 kB / 0.5234 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.891e-05/0.2462, allocations: 23.97 kB / 0.5234 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.2462, allocations: 8.375 kB / 0.5234 GB, free: 1.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.486e-05/0.2463, allocations: 99.2 kB / 0.5235 GB, free: 1.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2463, allocations: 0 / 0.5235 GB, free: 1.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002637/0.2489, allocations: 0.9424 MB / 0.5245 GB, free: 0.8438 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.1987/0.4476, allocations: 2.441 MB / 0.5268 GB, free: 71.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004238/0.448, allocations: 231.3 kB / 0.5271 GB, free: 71.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.448, allocations: 2.078 kB / 0.5271 GB, free: 71.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.4482, allocations: 103 kB / 0.5272 GB, free: 71.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009679/0.4492, allocations: 139.8 kB / 0.5273 GB, free: 71.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/0.4521, allocations: 2.455 MB / 0.5297 GB, free: 69.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.4523, allocations: 0.7334 MB / 0.5304 GB, free: 68.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.4524, allocations: 48.05 kB / 0.5304 GB, free: 68.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.948e-05/0.4525, allocations: 63.12 kB / 0.5305 GB, free: 68.95 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4525, allocations: 0 / 0.5305 GB, free: 68.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07214/0.5247, allocations: 31.17 MB / 0.5609 GB, free: 47.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.33, allocations: 7.047 kB / 0.561 GB, free: 47.64 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide_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_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.001225325999258] Failed to read output from testmodel.py, exit status != 0: 13.459359667998797 13.47098075 13.282937605 Calling exit ...