Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.0008823/0.0008823, allocations: 80.44 kB / 19.17 MB, free: 0.7383 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.001058/0.001058, allocations: 169.9 kB / 22.46 MB, free: 2.102 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.8676/0.8676, 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/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.08282/0.08282, allocations: 17.45 MB / 276.6 MB, free: 11.76 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.896e-06/2.896e-06, allocations: 3.984 kB / 411.6 MB, free: 244 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/2.097e-05, allocations: 5.094 kB / 411.6 MB, free: 240 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.0248/0.02482, allocations: 27.42 MB / 439 MB, free: 4.891 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1615/0.1863, allocations: 16.03 MB / 455.1 MB, free: 56.54 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007113/0.187, allocations: 25.5 kB / 455.1 MB, free: 56.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007512/0.1878, allocations: 445.3 kB / 455.5 MB, free: 56.3 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.1891, allocations: 0.8353 MB / 456.4 MB, free: 55.82 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004312/0.1934, allocations: 2.932 MB / 459.3 MB, free: 54.11 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.1945, allocations: 1.702 MB / 461 MB, free: 53.24 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006413/0.1951, allocations: 0.7318 MB / 461.7 MB, free: 52.9 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006553/0.1958, allocations: 1.022 MB / 462.7 MB, free: 52.52 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005673/0.1963, allocations: 0.6396 MB / 463.4 MB, free: 52.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001751/0.1965, allocations: 141.6 kB / 463.5 MB, free: 52.35 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002474/0.199, allocations: 1.688 MB / 465.2 MB, free: 51.97 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.1991, allocations: 369.2 kB / 465.6 MB, free: 51.74 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/0.1995, allocations: 0.527 MB / 466.1 MB, free: 51.52 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003597/0.2031, allocations: 3.748 MB / 469.8 MB, free: 49.94 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2031, allocations: 0 / 469.8 MB, free: 49.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2031, allocations: 0 / 469.8 MB, free: 49.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.461e-05/0.2031, allocations: 0 / 469.8 MB, free: 49.94 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.002097/0.2052, allocations: 1.884 MB / 471.7 MB, free: 48.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2053, allocations: 12.31 kB / 471.7 MB, free: 48.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.2054, allocations: 176.2 kB / 471.9 MB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007724/0.2062, allocations: 392.3 kB / 472.3 MB, free: 48.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000925/0.2071, allocations: 0.9203 MB / 473.2 MB, free: 48.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.747e-05/0.2072, allocations: 199.4 kB / 473.4 MB, free: 47.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.2073, allocations: 119.5 kB / 473.5 MB, free: 47.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.2087, allocations: 1.671 MB / 475.2 MB, free: 47.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.2088, allocations: 0 / 475.2 MB, free: 47.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.316e-05/0.2088, allocations: 45.47 kB / 475.2 MB, free: 47.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.2089, allocations: 30.84 kB / 475.3 MB, free: 47.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.2105, allocations: 2.107 MB / 477.4 MB, free: 46.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/0.2144, allocations: 4.858 MB / 482.2 MB, free: 43.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007559/0.2152, allocations: 0.6871 MB / 482.9 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003583/0.2155, allocations: 332.9 kB / 483.3 MB, free: 43.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00354/0.2191, allocations: 2.657 MB / 485.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.2191, allocations: 33.31 kB / 485.9 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001505/0.2193, allocations: 84.03 kB / 486 MB, free: 41.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 2.515e-06/0.2193, allocations: 4.234 kB / 486 MB, free: 41.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008913/0.2201, allocations: 0.6024 MB / 486.6 MB, free: 41.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.2202, allocations: 110.8 kB / 486.7 MB, free: 41.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009204/0.2211, allocations: 1.251 MB / 488 MB, free: 41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.2211, allocations: 35.17 kB / 488 MB, free: 40.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.2214, allocations: 0.7943 MB / 488.8 MB, free: 40.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.016e-05/0.2214, allocations: 144.7 kB / 489 MB, free: 40.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.2216, allocations: 271.4 kB / 489.2 MB, free: 40.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.163e-05/0.2217, allocations: 354.3 kB / 489.6 MB, free: 39.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.222, allocations: 324.7 kB / 489.9 MB, free: 39.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005292/0.2225, allocations: 1.054 MB / 490.9 MB, free: 38.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008505/0.2234, allocations: 1.403 MB / 492.3 MB, free: 37.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.2234, allocations: 7.375 kB / 492.4 MB, free: 37.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001345/0.2248, allocations: 1.461 MB / 493.8 MB, free: 36.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.2248, allocations: 15.88 kB / 493.8 MB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.2248, allocations: 26 kB / 493.9 MB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003739/0.2252, allocations: 152 kB / 494 MB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005921/0.2258, allocations: 377.5 kB / 494.4 MB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/0.227, allocations: 3.852 MB / 498.2 MB, free: 32.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004946/0.2275, allocations: 80.09 kB / 498.3 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.2276, allocations: 97.59 kB / 498.4 MB, free: 32.74 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002987/0.2279, allocations: 309.3 kB / 498.7 MB, free: 32.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.228, allocations: 105.2 kB / 498.8 MB, free: 32.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009281/0.2289, allocations: 0.8518 MB / 499.7 MB, free: 32.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2289, allocations: 6.406 kB / 499.7 MB, free: 32.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.2289, allocations: 1.125 kB / 499.7 MB, free: 32.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2289, allocations: 7.734 kB / 499.7 MB, free: 32.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.2301, allocations: 1.174 MB / 0.4891 GB, free: 31.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2301, allocations: 2.312 kB / 0.4891 GB, free: 31.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.2303, allocations: 59.39 kB / 0.4892 GB, free: 31.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003828/0.2306, allocations: 175.4 kB / 0.4893 GB, free: 31.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.2307, allocations: 18.45 kB / 0.4893 GB, free: 31.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.2318, allocations: 3.736 MB / 0.493 GB, free: 27.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.2318, allocations: 6.188 kB / 0.493 GB, free: 27.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007/0.2325, allocations: 0.8526 MB / 0.4938 GB, free: 27.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.2326, allocations: 98.7 kB / 0.4939 GB, free: 27.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.2327, allocations: 9.797 kB / 0.4939 GB, free: 27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.2329, allocations: 9.406 kB / 0.4939 GB, free: 27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.506e-05/0.2329, allocations: 43.86 kB / 0.494 GB, free: 26.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.2329, allocations: 17.41 kB / 0.494 GB, free: 26.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008086/0.2338, allocations: 0.8951 MB / 0.4949 GB, free: 26.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2338, allocations: 0 / 0.4949 GB, free: 26.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001487/0.2352, allocations: 0.6295 MB / 0.4955 GB, free: 26.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001923/0.2372, allocations: 2.072 MB / 0.4975 GB, free: 25.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.2384, allocations: 0.7726 MB / 0.4983 GB, free: 24.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2384, allocations: 0 / 0.4983 GB, free: 24.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.2387, allocations: 389.4 kB / 0.4986 GB, free: 24.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007285/0.2394, allocations: 168.7 kB / 0.4988 GB, free: 24.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00835/0.2478, allocations: 9.536 MB / 0.5081 GB, free: 18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.2481, allocations: 480.1 kB / 0.5086 GB, free: 17.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005795/0.2487, allocations: 279.9 kB / 0.5088 GB, free: 17.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003509/0.249, allocations: 0.4902 MB / 0.5093 GB, free: 17.07 MB / 410.7 MB Notification: Performance of SimCode: time 8.32e-07/0.249, allocations: 0 / 0.5093 GB, free: 17.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03924/0.2883, allocations: 30.87 MB / 0.5395 GB, free: 4.914 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/8.194, allocations: 11.94 kB / 0.5395 GB, free: 4.902 MB / 426.7 MB " [Timeout remaining time 652] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.010584007017314] Failed to read output from testmodel.py, exit status != 0: 8.291270360350609 8.298727704 8.094019137 Calling exit ...