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.001585/0.001585, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001996/0.001996, allocations: 219.2 kB / 22.26 MB, free: 5.125 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.499/1.499, allocations: 207.6 MB / 233 MB, free: 9.969 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.0522/0.0522, allocations: 9.148 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.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.002442/0.002442, allocations: 67.69 kB / 411.1 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08388/0.08633, 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.02471/0.111, allocations: 17.46 MB / 479.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01865/0.1297, allocations: 16.83 MB / 496.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.949e-05/0.1298, allocations: 0 / 496.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007704/0.1305, allocations: 299.1 kB / 496.4 MB, free: 9.984 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.01753/0.1481, allocations: 6.448 MB / 0.4911 GB, free: 3.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.1496, allocations: 0.5831 MB / 0.4917 GB, free: 2.938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003527/0.15, allocations: 191 kB / 0.4918 GB, free: 2.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.15, allocations: 1.312 kB / 0.4919 GB, free: 2.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.1502, allocations: 91.62 kB / 0.4919 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1503, allocations: 55.72 kB / 0.492 GB, free: 2.605 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.1503, allocations: 4 kB / 0.492 GB, free: 2.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01891/0.1692, allocations: 10.01 MB / 0.5018 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.1693, allocations: 11.92 kB / 0.5018 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1694, allocations: 63.66 kB / 0.5018 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01153/0.1809, allocations: 4.025 MB / 0.5058 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.1809, allocations: 4 kB / 0.5058 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1809, allocations: 0 / 0.5058 GB, free: 4.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.535e-06/0.1809, allocations: 0 / 0.5058 GB, free: 4.461 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.002446/0.1834, allocations: 0.8447 MB / 0.5066 GB, free: 3.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.1834, allocations: 11.98 kB / 0.5066 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.325e-05/0.1835, allocations: 42.55 kB / 0.5067 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.1837, allocations: 27.83 kB / 0.5067 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.1839, allocations: 149 kB / 0.5068 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1839, allocations: 8 kB / 0.5068 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.1839, allocations: 11.94 kB / 0.5068 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.1842, allocations: 132.9 kB / 0.507 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1842, allocations: 0 / 0.507 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.1842, allocations: 7.938 kB / 0.507 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1842, allocations: 0 / 0.507 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001579/0.1844, allocations: 103.9 kB / 0.5071 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008481/0.1852, allocations: 0.5534 MB / 0.5076 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.1855, allocations: 117.1 kB / 0.5077 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.1856, allocations: 65.77 kB / 0.5078 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05329/0.2389, allocations: 10.88 MB / 0.5184 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.239, allocations: 30.56 kB / 0.5184 GB, free: 7.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.983e-06/0.239, allocations: 4 kB / 0.5184 GB, free: 7.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006973/0.2397, allocations: 230 kB / 0.5187 GB, free: 7.051 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.2397, allocations: 81.11 kB / 0.5187 GB, free: 6.953 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.2399, allocations: 117.8 kB / 0.5189 GB, free: 6.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.2399, allocations: 25.7 kB / 0.5189 GB, free: 6.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.24, allocations: 92.52 kB / 0.519 GB, free: 6.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.308e-05/0.2401, allocations: 83.22 kB / 0.519 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.409e-05/0.2401, allocations: 37.7 kB / 0.5191 GB, free: 6.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.2403, allocations: 330.8 kB / 0.5194 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.2404, allocations: 43.98 kB / 0.5194 GB, free: 6.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.2405, allocations: 61.69 kB / 0.5195 GB, free: 6.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.2407, allocations: 119.8 kB / 0.5196 GB, free: 6.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2407, allocations: 0 / 0.5196 GB, free: 6.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002771/0.241, allocations: 181.6 kB / 0.5198 GB, free: 5.828 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.241, allocations: 6.344 kB / 0.5198 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.241, allocations: 0 / 0.5198 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.241, allocations: 8 kB / 0.5198 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.091e-05/0.2411, allocations: 16.38 kB / 0.5198 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.2411, allocations: 3.984 kB / 0.5198 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.645e-05/0.2412, allocations: 15.89 kB / 0.5198 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.2412, allocations: 4 kB / 0.5198 GB, free: 5.777 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.0001178/0.2413, allocations: 129.9 kB / 0.52 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.542e-05/0.2414, allocations: 11.89 kB / 0.52 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004943/0.2419, allocations: 325.1 kB / 0.5203 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003276/0.2422, allocations: 237.5 kB / 0.5205 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2422, allocations: 0 / 0.5205 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.2422, allocations: 3.984 kB / 0.5205 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.2432, allocations: 0.73 MB / 0.5212 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2432, allocations: 0 / 0.5212 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.2434, allocations: 44.05 kB / 0.5213 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.2434, allocations: 0 / 0.5213 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.2434, allocations: 12 kB / 0.5213 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.2434, allocations: 3.984 kB / 0.5213 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2434, allocations: 0 / 0.5213 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000655/0.2441, allocations: 0.5378 MB / 0.5218 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.2441, allocations: 23.81 kB / 0.5218 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.2442, allocations: 8.062 kB / 0.5218 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.2443, allocations: 8 kB / 0.5218 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.864e-05/0.2443, allocations: 11.97 kB / 0.5219 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.2443, allocations: 12 kB / 0.5219 GB, free: 3.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.022e-05/0.2444, allocations: 95.2 kB / 0.522 GB, free: 3.523 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2444, allocations: 0 / 0.522 GB, free: 3.523 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0025/0.2469, allocations: 0.9501 MB / 0.5229 GB, free: 2.57 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.004926/0.2518, allocations: 2.4 MB / 0.5252 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.1868/0.4386, allocations: 226.2 kB / 0.5255 GB, free: 70.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.4386, allocations: 0 / 0.5255 GB, free: 70.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.4388, allocations: 105.7 kB / 0.5256 GB, free: 70.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.4398, allocations: 142.5 kB / 0.5257 GB, free: 70.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003035/0.4428, allocations: 2.447 MB / 0.5281 GB, free: 69.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.443, allocations: 0.736 MB / 0.5288 GB, free: 68.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.4431, allocations: 46.77 kB / 0.5288 GB, free: 68.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.269e-05/0.4432, allocations: 62.91 kB / 0.5289 GB, free: 68.68 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4432, allocations: 0 / 0.5289 GB, free: 68.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07499/0.5182, allocations: 31.1 MB / 0.5593 GB, free: 49.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.87, allocations: 8.016 kB / 0.5593 GB, free: 49.11 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium_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_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.498078251999686] Failed to read output from testmodel.py, exit status != 0: 12.996280142004252 13.005755812 12.822491959 Calling exit ...