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.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.001559/0.001559, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.00162/0.00162, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.42/1.42, allocations: 207.6 MB / 230.5 MB, free: 4.023 MB / 174.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.04883/0.04883, allocations: 9.141 MB / 291.5 MB, free: 7.18 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.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",fmuType="cs",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.002077/0.002077, allocations: 70.25 kB / 406.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.26, allocations: 50.72 MB / 457.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01829/0.2783, allocations: 17.42 MB / 474.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.2953, allocations: 16.84 MB / 491.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.2954, allocations: 0 / 491.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007759/0.2962, allocations: 303.1 kB / 491.9 MB, free: 5.238 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.01627/0.3125, allocations: 6.36 MB / 498.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.3139, allocations: 0.5909 MB / 498.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002122/0.3141, allocations: 183 kB / 499 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.721e-05/0.3142, allocations: 9.109 kB / 499 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.3143, allocations: 87.58 kB / 499.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.3144, allocations: 55.72 kB / 499.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.3144, allocations: 4 kB / 499.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01703/0.3315, allocations: 9.693 MB / 0.4969 GB, free: 4.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.3315, allocations: 11.94 kB / 0.4969 GB, free: 4.203 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.037e-05/0.3316, allocations: 63.66 kB / 0.497 GB, free: 4.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.3421, allocations: 4.014 MB / 0.5009 GB, free: 120 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3421, allocations: 4 kB / 0.5009 GB, free: 116 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3421, allocations: 0 / 0.5009 GB, free: 116 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.3421, allocations: 0 / 0.5009 GB, free: 116 kB / 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.001866/0.344, allocations: 0.9239 MB / 0.5018 GB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.344, allocations: 8.031 kB / 0.5018 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.657e-05/0.3441, allocations: 4 kB / 0.5018 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.695e-05/0.3441, allocations: 42.5 kB / 0.5019 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.3443, allocations: 31.89 kB / 0.5019 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.3445, allocations: 202.8 kB / 0.5021 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.3445, allocations: 0 / 0.5021 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.3445, allocations: 8 kB / 0.5021 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.3448, allocations: 131.3 kB / 0.5022 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3448, allocations: 0 / 0.5022 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3448, allocations: 7.938 kB / 0.5022 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.3448, allocations: 4 kB / 0.5022 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.3449, allocations: 99.89 kB / 0.5023 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006911/0.3456, allocations: 0.5661 MB / 0.5029 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.346, allocations: 117.1 kB / 0.503 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.3461, allocations: 69.75 kB / 0.5031 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05995/0.406, allocations: 33.17 MB / 0.5354 GB, free: 6.996 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.406, allocations: 30.56 kB / 0.5355 GB, free: 6.957 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.074e-06/0.406, allocations: 0 / 0.5355 GB, free: 6.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006498/0.4067, allocations: 233.6 kB / 0.5357 GB, free: 6.723 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.4068, allocations: 81.11 kB / 0.5358 GB, free: 6.625 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.4069, allocations: 125.7 kB / 0.5359 GB, free: 6.492 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.4069, allocations: 25.7 kB / 0.5359 GB, free: 6.461 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.4069, allocations: 96.53 kB / 0.536 GB, free: 6.359 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.984e-05/0.407, allocations: 83.25 kB / 0.5361 GB, free: 6.277 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.4071, allocations: 37.7 kB / 0.5361 GB, free: 6.234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4072, allocations: 330.8 kB / 0.5364 GB, free: 5.902 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.428e-05/0.4073, allocations: 43.98 kB / 0.5365 GB, free: 5.859 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.492e-05/0.4074, allocations: 69.69 kB / 0.5365 GB, free: 5.785 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.4075, allocations: 113.8 kB / 0.5367 GB, free: 5.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.4075, allocations: 0 / 0.5367 GB, free: 5.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002464/0.4078, allocations: 177.5 kB / 0.5368 GB, free: 5.488 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.4078, allocations: 9.406 kB / 0.5368 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.4078, allocations: 0 / 0.5368 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.4078, allocations: 0 / 0.5368 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.649e-05/0.4079, allocations: 19.94 kB / 0.5369 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.4079, allocations: 4.156 kB / 0.5369 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.263e-05/0.408, allocations: 11.89 kB / 0.5369 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.408, allocations: 11.92 kB / 0.5369 GB, free: 5.434 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.0001006/0.4081, allocations: 125.8 kB / 0.537 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.332e-05/0.4082, allocations: 11.95 kB / 0.537 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000445/0.4086, allocations: 306 kB / 0.5373 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002903/0.4089, allocations: 240.7 kB / 0.5375 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4089, allocations: 0 / 0.5375 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.4089, allocations: 3.938 kB / 0.5375 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000921/0.4098, allocations: 0.7665 MB / 0.5383 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4098, allocations: 4 kB / 0.5383 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.41, allocations: 31.98 kB / 0.5383 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.41, allocations: 4 kB / 0.5383 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.41, allocations: 4 kB / 0.5383 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.41, allocations: 4 kB / 0.5383 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.41, allocations: 0 / 0.5383 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005656/0.4106, allocations: 0.5378 MB / 0.5389 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.689e-05/0.4106, allocations: 92.98 kB / 0.5389 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/0.4107, allocations: 8 kB / 0.539 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.4108, allocations: 7.984 kB / 0.539 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.4108, allocations: 11.98 kB / 0.539 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.4108, allocations: 12 kB / 0.539 GB, free: 3.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.101e-05/0.4109, allocations: 91.27 kB / 0.5391 GB, free: 3.082 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4109, allocations: 0 / 0.5391 GB, free: 3.082 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002241/0.4131, allocations: 0.9463 MB / 0.54 GB, free: 2.133 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.004168/0.4173, allocations: 2.42 MB / 0.5424 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003956/0.4177, allocations: 235.1 kB / 0.5426 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4177, allocations: 4 kB / 0.5426 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.4178, allocations: 99.89 kB / 0.5427 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009314/0.4188, allocations: 149.8 kB / 0.5428 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.422, allocations: 2.454 MB / 0.5452 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.4223, allocations: 0.7289 MB / 0.5459 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.4225, allocations: 45.95 kB / 0.546 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.4226, allocations: 59.42 kB / 0.546 GB, free: 11.79 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4226, allocations: 0 / 0.546 GB, free: 11.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06027/0.4829, allocations: 30.74 MB / 0.5761 GB, free: 13.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.792/9.275, allocations: 4.062 kB / 0.5761 GB, free: 13.04 MB / 462.1 MB " [Timeout remaining time 651] (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: 11.64525852596853] Failed to read output from testmodel.py, exit status != 0: 9.412461440020707 9.425718252 9.080758961 Calling exit ...