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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 108.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.427/1.427, allocations: 207.6 MB / 229.8 MB, free: 11.41 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.05116/0.05116, allocations: 9.16 MB / 290.8 MB, free: 13.91 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.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"}) [Timeout 660] "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.00233/0.00233, allocations: 75.8 kB / 405.8 MB, free: 47.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08352/0.08585, allocations: 50.72 MB / 456.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.0232/0.109, allocations: 17.43 MB / 474 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.1278, allocations: 16.83 MB / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1279, allocations: 0 / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007848/0.1287, allocations: 303.1 kB / 491.1 MB, free: 11.53 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.01582/0.1445, allocations: 6.365 MB / 497.5 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.146, allocations: 0.587 MB / 498.1 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002568/0.1462, allocations: 190.9 kB / 498.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.389e-05/0.1463, allocations: 5.125 kB / 498.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.1464, allocations: 75.66 kB / 498.3 MB, free: 4.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.1466, allocations: 63.7 kB / 498.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.1466, allocations: 8 kB / 498.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02297/0.1695, allocations: 9.693 MB / 0.4962 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.1696, allocations: 7.922 kB / 0.4962 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.1697, allocations: 59.67 kB / 0.4962 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01231/0.182, allocations: 4.017 MB / 0.5002 GB, free: 6.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.182, allocations: 0 / 0.5002 GB, free: 6.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.182, allocations: 0 / 0.5002 GB, free: 6.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.182, allocations: 0 / 0.5002 GB, free: 6.418 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.002249/0.1843, allocations: 0.9239 MB / 0.5011 GB, free: 5.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.1843, allocations: 8.031 kB / 0.5011 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.929e-05/0.1844, allocations: 46.55 kB / 0.5011 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.1846, allocations: 31.83 kB / 0.5011 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.1849, allocations: 198.8 kB / 0.5013 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.1849, allocations: 8 kB / 0.5013 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.648e-05/0.1849, allocations: 7.984 kB / 0.5014 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002427/0.1851, allocations: 123.4 kB / 0.5015 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1852, allocations: 4 kB / 0.5015 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.1852, allocations: 11.94 kB / 0.5015 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1852, allocations: 3.984 kB / 0.5015 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1854, allocations: 111.9 kB / 0.5016 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007514/0.1861, allocations: 0.5623 MB / 0.5021 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.1864, allocations: 117.1 kB / 0.5023 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.1865, allocations: 61.77 kB / 0.5023 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.268/0.4545, allocations: 33.17 MB / 0.5347 GB, free: 87.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.4545, allocations: 32.72 kB / 0.5347 GB, free: 87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.355e-06/0.4545, allocations: 3.562 kB / 0.5347 GB, free: 87 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006585/0.4552, allocations: 228.1 kB / 0.535 GB, free: 86.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.4552, allocations: 80.05 kB / 0.535 GB, free: 86.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.226e-05/0.4553, allocations: 122.8 kB / 0.5352 GB, free: 86.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.4553, allocations: 26.98 kB / 0.5352 GB, free: 86.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.134e-05/0.4553, allocations: 87.84 kB / 0.5353 GB, free: 86.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.571e-05/0.4554, allocations: 87.11 kB / 0.5353 GB, free: 86.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.4555, allocations: 37.48 kB / 0.5354 GB, free: 86.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.91e-05/0.4555, allocations: 324 kB / 0.5357 GB, free: 86.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.256e-05/0.4556, allocations: 48.53 kB / 0.5357 GB, free: 86.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.217e-05/0.4557, allocations: 68.44 kB / 0.5358 GB, free: 86.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.4558, allocations: 124.1 kB / 0.5359 GB, free: 86.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.4558, allocations: 0 / 0.5359 GB, free: 86.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002284/0.4561, allocations: 172.6 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.4561, allocations: 6.391 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.4561, allocations: 1 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4561, allocations: 1.125 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.683e-05/0.4562, allocations: 17.98 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.4562, allocations: 4.969 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.881e-05/0.4563, allocations: 11.72 kB / 0.5361 GB, free: 86.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.4563, allocations: 6.562 kB / 0.5361 GB, free: 86.23 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 7.197e-05/0.4564, allocations: 124.8 kB / 0.5363 GB, free: 86.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.4564, allocations: 13.41 kB / 0.5363 GB, free: 86.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004566/0.4569, allocations: 309 kB / 0.5366 GB, free: 86.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002733/0.4571, allocations: 241 kB / 0.5368 GB, free: 86.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4571, allocations: 0 / 0.5368 GB, free: 86.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4571, allocations: 2.438 kB / 0.5368 GB, free: 86.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008452/0.458, allocations: 0.7616 MB / 0.5375 GB, free: 85.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.458, allocations: 1.156 kB / 0.5375 GB, free: 85.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.4581, allocations: 39.53 kB / 0.5376 GB, free: 85.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4582, allocations: 2 kB / 0.5376 GB, free: 85.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.4582, allocations: 7.938 kB / 0.5376 GB, free: 85.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.4582, allocations: 2.25 kB / 0.5376 GB, free: 85.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.4582, allocations: 0 / 0.5376 GB, free: 85.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005232/0.4587, allocations: 0.5262 MB / 0.5381 GB, free: 85.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.4587, allocations: 98.27 kB / 0.5382 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.4588, allocations: 7.719 kB / 0.5382 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.4589, allocations: 11.56 kB / 0.5382 GB, free: 85.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/0.4589, allocations: 16.94 kB / 0.5382 GB, free: 85.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.4589, allocations: 6.531 kB / 0.5382 GB, free: 85.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.618e-05/0.459, allocations: 92.53 kB / 0.5383 GB, free: 85.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.459, allocations: 0 / 0.5383 GB, free: 85.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002471/0.4615, allocations: 0.9456 MB / 0.5392 GB, free: 85.06 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.003981/0.4654, allocations: 2.418 MB / 0.5416 GB, free: 83.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003843/0.4658, allocations: 229.5 kB / 0.5418 GB, free: 83.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4658, allocations: 1.344 kB / 0.5418 GB, free: 83.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.466, allocations: 113.6 kB / 0.5419 GB, free: 83.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009327/0.4669, allocations: 143.2 kB / 0.5421 GB, free: 83.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/0.4699, allocations: 2.438 MB / 0.5445 GB, free: 82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.4701, allocations: 0.7413 MB / 0.5452 GB, free: 81.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000206/0.4703, allocations: 48.44 kB / 0.5452 GB, free: 81.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.4704, allocations: 61.14 kB / 0.5453 GB, free: 81.25 MB / 414.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4704, allocations: 0.5938 kB / 0.5453 GB, free: 81.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0613/0.5317, allocations: 30.69 MB / 0.5753 GB, free: 56.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.304/9.836, allocations: 12 kB / 0.5753 GB, free: 56.95 MB / 414.1 MB " [Timeout remaining time 650] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.329997591208667] Failed to read output from testmodel.py, exit status != 0: 9.92587299598381 9.94252803 9.756978729 Calling exit ...