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.001809/0.001809, 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.002275/0.002275, allocations: 216.2 kB / 22.26 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.393/1.393, 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.05232/0.05232, allocations: 9.157 MB / 294.4 MB, free: 12.7 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="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.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.00223/0.00223, allocations: 75.75 kB / 411.1 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06464/0.06687, allocations: 50.76 MB / 461.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02186/0.08873, allocations: 17.46 MB / 479.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.1079, allocations: 16.84 MB / 496.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.108, allocations: 0 / 496.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007544/0.1088, allocations: 307.1 kB / 496.5 MB, free: 9.965 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.01618/0.1249, allocations: 6.429 MB / 0.4911 GB, free: 3.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.1265, allocations: 0.587 MB / 0.4917 GB, free: 2.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000267/0.1267, allocations: 195 kB / 0.4919 GB, free: 2.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.702e-05/0.1268, allocations: 5.312 kB / 0.4919 GB, free: 2.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.1269, allocations: 79.66 kB / 0.4919 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.127, allocations: 55.7 kB / 0.492 GB, free: 2.605 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.1271, allocations: 4 kB / 0.492 GB, free: 2.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01844/0.1455, allocations: 10.02 MB / 0.5018 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.1455, allocations: 19.91 kB / 0.5018 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1457, allocations: 51.75 kB / 0.5018 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009529/0.1552, allocations: 4.029 MB / 0.5058 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1552, allocations: 0 / 0.5058 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1552, allocations: 0 / 0.5058 GB, free: 4.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.1552, allocations: 0 / 0.5058 GB, free: 4.457 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.001961/0.1572, allocations: 0.8447 MB / 0.5066 GB, free: 3.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1572, allocations: 15.98 kB / 0.5066 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.1572, allocations: 38.56 kB / 0.5067 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.1574, allocations: 39.81 kB / 0.5067 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.1577, allocations: 141 kB / 0.5068 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.1577, allocations: 8 kB / 0.5068 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.1577, allocations: 4 kB / 0.5068 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.1579, allocations: 132.8 kB / 0.507 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.1579, allocations: 0 / 0.507 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1579, allocations: 7.938 kB / 0.507 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.158, allocations: 4 kB / 0.507 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.1581, allocations: 104 kB / 0.5071 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007297/0.1588, allocations: 0.5533 MB / 0.5076 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.1591, allocations: 109.1 kB / 0.5077 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.1592, allocations: 69.75 kB / 0.5078 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0525/0.2117, allocations: 10.88 MB / 0.5184 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.2117, allocations: 38.5 kB / 0.5185 GB, free: 7.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.445e-06/0.2117, allocations: 4 kB / 0.5185 GB, free: 7.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006734/0.2124, allocations: 225.4 kB / 0.5187 GB, free: 7.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.2125, allocations: 81.09 kB / 0.5187 GB, free: 6.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.2126, allocations: 121.8 kB / 0.5189 GB, free: 6.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2126, allocations: 25.7 kB / 0.5189 GB, free: 6.789 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.923e-05/0.2127, allocations: 92.53 kB / 0.519 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.589e-05/0.2127, allocations: 87.25 kB / 0.5191 GB, free: 6.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.2128, allocations: 37.7 kB / 0.5191 GB, free: 6.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.213, allocations: 326.8 kB / 0.5194 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.087e-05/0.213, allocations: 43.98 kB / 0.5194 GB, free: 6.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.2131, allocations: 61.7 kB / 0.5195 GB, free: 6.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.2133, allocations: 125.1 kB / 0.5196 GB, free: 6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2133, allocations: 0 / 0.5196 GB, free: 6 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002727/0.2136, allocations: 161.6 kB / 0.5198 GB, free: 5.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.2136, allocations: 12 kB / 0.5198 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.459e-05/0.2136, allocations: 3.984 kB / 0.5198 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2137, allocations: 0 / 0.5198 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.522e-05/0.2137, allocations: 19.94 kB / 0.5198 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.2138, allocations: 4 kB / 0.5198 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.484e-05/0.2138, allocations: 12.02 kB / 0.5198 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.2138, allocations: 11.94 kB / 0.5198 GB, free: 5.773 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.0001096/0.2139, allocations: 118 kB / 0.52 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.214, allocations: 19.94 kB / 0.52 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004929/0.2145, allocations: 321.7 kB / 0.5203 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003144/0.2148, allocations: 233.9 kB / 0.5205 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2148, allocations: 4 kB / 0.5205 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2148, allocations: 0 / 0.5205 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.2159, allocations: 0.7415 MB / 0.5212 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2159, allocations: 3.938 kB / 0.5212 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.2161, allocations: 43.92 kB / 0.5213 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.2161, allocations: 0 / 0.5213 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2161, allocations: 8 kB / 0.5213 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2161, allocations: 0 / 0.5213 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2161, allocations: 4 kB / 0.5213 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006265/0.2167, allocations: 0.5339 MB / 0.5218 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.2167, allocations: 19.81 kB / 0.5218 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.2168, allocations: 11.98 kB / 0.5218 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.2169, allocations: 4 kB / 0.5218 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.2169, allocations: 19.97 kB / 0.5219 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.217, allocations: 4 kB / 0.5219 GB, free: 3.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.922e-05/0.217, allocations: 99.2 kB / 0.522 GB, free: 3.523 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.217, allocations: 0 / 0.522 GB, free: 3.523 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002349/0.2194, allocations: 0.9423 MB / 0.5229 GB, free: 2.578 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.004884/0.2243, allocations: 2.404 MB / 0.5252 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.1683/0.3925, allocations: 227.4 kB / 0.5254 GB, free: 70.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.748e-06/0.3925, allocations: 0 / 0.5254 GB, free: 70.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.3927, allocations: 104.2 kB / 0.5255 GB, free: 70.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.3938, allocations: 141.8 kB / 0.5257 GB, free: 70.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/0.3967, allocations: 2.45 MB / 0.5281 GB, free: 69.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.3969, allocations: 0.7389 MB / 0.5288 GB, free: 68.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.397, allocations: 42.95 kB / 0.5288 GB, free: 68.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.156e-05/0.3971, allocations: 63 kB / 0.5289 GB, free: 68.63 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3971, allocations: 0 / 0.5289 GB, free: 68.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0703/0.4674, allocations: 31.1 MB / 0.5593 GB, free: 49.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.85, allocations: 19.95 kB / 0.5593 GB, free: 49.05 MB / 398.1 MB " [Timeout remaining time 647] (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: 18.523724619997665] Failed to read output from testmodel.py, exit status != 0: 12.973962888121605 12.984204 12.826703205 Calling exit ...