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.00125/0.00125, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001547/0.001547, allocations: 215.5 kB / 23.04 MB, free: 5.078 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.291/1.291, allocations: 207.6 MB / 233.8 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] 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.05187/0.05187, allocations: 9.166 MB / 295.2 MB, free: 12.79 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.002053/0.002053, allocations: 72.98 kB / 411.9 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06551/0.06756, allocations: 50.76 MB / 462.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01953/0.0871, allocations: 17.45 MB / 480.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01648/0.1036, allocations: 16.84 MB / 496.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.363e-05/0.1037, allocations: 0 / 496.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006956/0.1044, allocations: 303.1 kB / 497.2 MB, free: 9.992 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.01386/0.1182, allocations: 6.434 MB / 0.4919 GB, free: 3.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.1195, allocations: 0.5909 MB / 0.4924 GB, free: 2.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.1197, allocations: 183 kB / 0.4926 GB, free: 2.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.851e-05/0.1198, allocations: 9.312 kB / 0.4926 GB, free: 2.762 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.1199, allocations: 79.64 kB / 0.4927 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.12, allocations: 59.77 kB / 0.4928 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.12, allocations: 7.938 kB / 0.4928 GB, free: 2.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01655/0.1365, allocations: 10.01 MB / 0.5025 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.1366, allocations: 19.86 kB / 0.5026 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.512e-05/0.1367, allocations: 51.73 kB / 0.5026 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009883/0.1465, allocations: 4.029 MB / 0.5065 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1466, allocations: 0 / 0.5065 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1466, allocations: 0 / 0.5065 GB, free: 4.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.1466, allocations: 0 / 0.5065 GB, free: 4.48 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.001802/0.1484, allocations: 0.8486 MB / 0.5074 GB, free: 3.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.1484, allocations: 15.98 kB / 0.5074 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.256e-05/0.1484, allocations: 0 / 0.5074 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.841e-05/0.1485, allocations: 46.48 kB / 0.5074 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1486, allocations: 27.89 kB / 0.5075 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.1488, allocations: 145 kB / 0.5076 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.182e-06/0.1488, allocations: 0 / 0.5076 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.1489, allocations: 8 kB / 0.5076 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.149, allocations: 144.8 kB / 0.5077 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1491, allocations: 0 / 0.5077 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.1491, allocations: 7.938 kB / 0.5077 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1491, allocations: 4 kB / 0.5078 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.1492, allocations: 99.94 kB / 0.5078 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.1499, allocations: 0.5495 MB / 0.5084 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.1501, allocations: 113.1 kB / 0.5085 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.548e-05/0.1502, allocations: 65.77 kB / 0.5086 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04854/0.1987, allocations: 10.89 MB / 0.5192 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.1988, allocations: 34.5 kB / 0.5192 GB, free: 7.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.945e-06/0.1988, allocations: 0 / 0.5192 GB, free: 7.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006488/0.1994, allocations: 237.4 kB / 0.5194 GB, free: 7.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.1995, allocations: 77.11 kB / 0.5195 GB, free: 6.965 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1996, allocations: 121.8 kB / 0.5196 GB, free: 6.836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.1996, allocations: 25.7 kB / 0.5197 GB, free: 6.805 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.1997, allocations: 92.52 kB / 0.5197 GB, free: 6.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.613e-05/0.1998, allocations: 83.27 kB / 0.5198 GB, free: 6.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.384e-05/0.1998, allocations: 37.7 kB / 0.5199 GB, free: 6.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1999, allocations: 326.8 kB / 0.5202 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.762e-05/0.2, allocations: 47.98 kB / 0.5202 GB, free: 6.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.262e-05/0.2001, allocations: 61.69 kB / 0.5203 GB, free: 6.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.2003, allocations: 129.1 kB / 0.5204 GB, free: 6.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2003, allocations: 0 / 0.5204 GB, free: 6.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002713/0.2006, allocations: 169.3 kB / 0.5206 GB, free: 5.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.2006, allocations: 4 kB / 0.5206 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2006, allocations: 4 kB / 0.5206 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.2006, allocations: 0 / 0.5206 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.057e-05/0.2007, allocations: 28.06 kB / 0.5206 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.2007, allocations: 3.984 kB / 0.5206 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.469e-05/0.2008, allocations: 15.89 kB / 0.5206 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.2008, allocations: 7.938 kB / 0.5206 GB, free: 5.781 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 9.686e-05/0.2009, allocations: 118 kB / 0.5207 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.535e-05/0.2009, allocations: 7.953 kB / 0.5207 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004639/0.2014, allocations: 317.8 kB / 0.521 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002953/0.2017, allocations: 241.8 kB / 0.5213 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2017, allocations: 0 / 0.5213 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.2017, allocations: 3.984 kB / 0.5213 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009687/0.2027, allocations: 0.7376 MB / 0.522 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2027, allocations: 3.938 kB / 0.522 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.2028, allocations: 43.92 kB / 0.522 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2028, allocations: 4 kB / 0.5221 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2029, allocations: 4 kB / 0.5221 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.2029, allocations: 3.984 kB / 0.5221 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2029, allocations: 0 / 0.5221 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005931/0.2035, allocations: 0.5378 MB / 0.5226 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.2035, allocations: 19.78 kB / 0.5226 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.2035, allocations: 8 kB / 0.5226 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.2037, allocations: 8.062 kB / 0.5226 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.2037, allocations: 15.97 kB / 0.5226 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2037, allocations: 8 kB / 0.5226 GB, free: 3.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.624e-05/0.2038, allocations: 95.2 kB / 0.5227 GB, free: 3.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2038, allocations: 0 / 0.5227 GB, free: 3.543 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002295/0.2061, allocations: 0.9501 MB / 0.5237 GB, free: 2.59 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.004936/0.211, allocations: 2.396 MB / 0.526 GB, free: 164 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.1545/0.3655, allocations: 225.7 kB / 0.5262 GB, free: 70.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.3655, allocations: 3.625 kB / 0.5262 GB, free: 70.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.3656, allocations: 103.5 kB / 0.5263 GB, free: 70.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009742/0.3666, allocations: 142.5 kB / 0.5265 GB, free: 70.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.3697, allocations: 2.453 MB / 0.5288 GB, free: 69.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001579/0.3699, allocations: 0.7386 MB / 0.5296 GB, free: 68.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001689/0.37, allocations: 41.83 kB / 0.5296 GB, free: 68.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.379e-05/0.3701, allocations: 65.14 kB / 0.5297 GB, free: 68.67 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3701, allocations: 0 / 0.5297 GB, free: 68.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05949/0.4296, allocations: 31.13 MB / 0.5601 GB, free: 49.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.92, allocations: 7.5 kB / 0.5601 GB, free: 49.06 MB / 398.1 MB " [Timeout remaining time 648] (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 sys.exit(0), Time elapsed: 20.71860416699201] Failed to read output from testmodel.py, exit status != 0: 12.104941679979675 12.116758453 11.967611356 Calling exit ...