Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.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.0008092/0.0008092, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.000865/0.000865, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8742/0.8742, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.02859/0.02859, allocations: 7.514 MB / 266.7 MB, free: 6.191 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 391.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.834e-05, allocations: 9.172 kB / 391.8 MB, free: 6.32 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01699/0.01701, allocations: 15.83 MB / 407.6 MB, free: 6.426 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.02723, allocations: 14.98 MB / 422.6 MB, free: 7.398 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/0.02728, allocations: 0 / 422.6 MB, free: 7.398 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005307/0.02781, allocations: 247.2 kB / 422.8 MB, free: 7.156 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009848/0.03766, allocations: 6.703 MB / 429.5 MB, free: 452 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008198/0.03848, allocations: 0.6258 MB / 430.1 MB, free: 15.81 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.03862, allocations: 214.8 kB / 430.4 MB, free: 15.6 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.03866, allocations: 5.312 kB / 430.4 MB, free: 15.59 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.03878, allocations: 123.6 kB / 430.5 MB, free: 15.47 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.352e-05/0.03886, allocations: 55.81 kB / 430.5 MB, free: 15.42 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.03887, allocations: 8 kB / 430.5 MB, free: 15.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007863/0.04673, allocations: 7.495 MB / 438 MB, free: 7.898 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.04675, allocations: 23.86 kB / 438.1 MB, free: 7.875 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.009e-05/0.0468, allocations: 43.86 kB / 438.1 MB, free: 7.832 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004238/0.05104, allocations: 4.115 MB / 442.2 MB, free: 3.707 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.05105, allocations: 4 kB / 442.2 MB, free: 3.703 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.05105, allocations: 0 / 442.2 MB, free: 3.703 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.05105, allocations: 4 kB / 442.2 MB, free: 3.699 MB / 410.7 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.0009192/0.05197, allocations: 0.833 MB / 443.1 MB, free: 2.832 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.05201, allocations: 12.62 kB / 443.1 MB, free: 2.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.05204, allocations: 42.48 kB / 443.1 MB, free: 2.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.239e-05/0.05213, allocations: 35.83 kB / 443.1 MB, free: 2.734 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.05227, allocations: 133.1 kB / 443.3 MB, free: 2.578 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.05228, allocations: 16 kB / 443.3 MB, free: 2.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002684/0.05255, allocations: 4 kB / 443.3 MB, free: 2.559 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/0.0527, allocations: 139.9 kB / 443.4 MB, free: 2.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.05271, allocations: 0 / 443.4 MB, free: 2.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.05272, allocations: 0 / 443.4 MB, free: 2.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.05272, allocations: 4 kB / 443.4 MB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.598e-05/0.05282, allocations: 111.9 kB / 443.5 MB, free: 2.297 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004359/0.05325, allocations: 447.8 kB / 444 MB, free: 1.812 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.05342, allocations: 109.1 kB / 444.1 MB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.111e-05/0.05348, allocations: 65.77 kB / 444.2 MB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1595/0.213, allocations: 10.92 MB / 455.1 MB, free: 91.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.213, allocations: 38.28 kB / 455.1 MB, free: 91.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.894e-06/0.213, allocations: 0 / 455.1 MB, free: 91.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004238/0.2134, allocations: 230.9 kB / 455.3 MB, free: 91.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.183e-05/0.2134, allocations: 77.11 kB / 455.4 MB, free: 91.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.037e-05/0.2135, allocations: 125.3 kB / 455.5 MB, free: 91.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.595e-06/0.2135, allocations: 29.7 kB / 455.6 MB, free: 91.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.382e-05/0.2135, allocations: 95.22 kB / 455.7 MB, free: 91.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.2135, allocations: 80.25 kB / 455.7 MB, free: 91.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.2136, allocations: 33.72 kB / 455.8 MB, free: 91.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.397e-05/0.2136, allocations: 325.2 kB / 456.1 MB, free: 90.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.262e-05/0.2137, allocations: 41.34 kB / 456.1 MB, free: 90.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.229e-05/0.2137, allocations: 64.69 kB / 456.2 MB, free: 90.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.2138, allocations: 130.1 kB / 456.3 MB, free: 90.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2138, allocations: 3.281 kB / 456.3 MB, free: 90.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001349/0.214, allocations: 167.8 kB / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.214, allocations: 7.219 kB / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.214, allocations: 1.75 kB / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.214, allocations: 0 / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.456e-05/0.214, allocations: 25.08 kB / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.214, allocations: 0 / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.784e-05/0.2141, allocations: 10 kB / 456.5 MB, free: 90.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.2141, allocations: 7.344 kB / 456.5 MB, free: 90.58 MB / 410.7 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 4.628e-05/0.2141, allocations: 120.1 kB / 456.7 MB, free: 90.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.2142, allocations: 10.3 kB / 456.7 MB, free: 90.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002575/0.2144, allocations: 324.9 kB / 457 MB, free: 90.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001536/0.2146, allocations: 252.5 kB / 457.2 MB, free: 90.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2146, allocations: 0 / 457.2 MB, free: 90.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2146, allocations: 3.031 kB / 457.2 MB, free: 90.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004896/0.2151, allocations: 0.713 MB / 457.9 MB, free: 89.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2151, allocations: 3.562 kB / 457.9 MB, free: 89.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.603e-05/0.2152, allocations: 36.81 kB / 458 MB, free: 89.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2152, allocations: 4 kB / 458 MB, free: 89.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.2152, allocations: 7.094 kB / 458 MB, free: 89.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2152, allocations: 0 / 458 MB, free: 89.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2152, allocations: 6.406 kB / 458 MB, free: 89.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.2155, allocations: 0.5356 MB / 458.5 MB, free: 89.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.44e-05/0.2155, allocations: 18.98 kB / 458.6 MB, free: 89.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.2155, allocations: 6.812 kB / 458.6 MB, free: 89.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.2156, allocations: 7.422 kB / 458.6 MB, free: 89.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.2156, allocations: 15.77 kB / 458.6 MB, free: 89.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.2156, allocations: 5.875 kB / 458.6 MB, free: 89.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.202e-05/0.2156, allocations: 98.59 kB / 458.7 MB, free: 89.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2156, allocations: 4.062 kB / 458.7 MB, free: 89.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001322/0.2169, allocations: 0.9429 MB / 459.6 MB, free: 89.18 MB / 410.7 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.002462/0.2194, allocations: 2.57 MB / 462.2 MB, free: 88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002302/0.2196, allocations: 243 kB / 462.4 MB, free: 87.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.2196, allocations: 0 / 462.4 MB, free: 87.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.515e-05/0.2197, allocations: 103.2 kB / 462.5 MB, free: 87.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.2202, allocations: 143.3 kB / 462.7 MB, free: 87.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.2218, allocations: 2.424 MB / 465.1 MB, free: 86.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.426e-05/0.2219, allocations: 119.1 kB / 465.2 MB, free: 85.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.962e-05/0.222, allocations: 47.08 kB / 465.3 MB, free: 85.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.88e-05/0.222, allocations: 63.06 kB / 465.3 MB, free: 85.89 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.222, allocations: 0 / 465.3 MB, free: 85.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04377/0.2658, allocations: 32.05 MB / 497.4 MB, free: 71.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/7.893, allocations: 13.56 kB / 497.4 MB, free: 71.81 MB / 410.7 MB " [Timeout remaining time 652] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide_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_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.585386539809406] Failed to read output from testmodel.py, exit status != 0: 7.996113868430257 8.003053645 7.950515295 Calling exit ...