Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.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.0007656/0.0007656, 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.0007741/0.0007741, allocations: 165.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.8678/0.8678, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.0858/0.0858, allocations: 17.45 MB / 276.6 MB, free: 11.78 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.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 3.938 kB / 411.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.613e-05/2.812e-05, allocations: 2.984 kB / 411.6 MB, free: 12.46 MB / 330.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.H2O_ElectrochemicalCell): time 0.0258/0.02582, allocations: 28.51 MB / 440.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.04088, allocations: 17.13 MB / 457.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.04251, allocations: 27.81 kB / 457.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.04371, allocations: 473.4 kB / 457.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004162/0.04788, allocations: 1.249 MB / 458.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007099/0.05498, allocations: 2.973 MB / 461.9 MB, free: 7.621 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002383/0.05736, allocations: 2.175 MB / 464.1 MB, free: 5.438 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.05841, allocations: 1.061 MB / 465.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.05966, allocations: 1.345 MB / 466.5 MB, free: 2.977 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009962/0.06066, allocations: 0.8338 MB / 467.3 MB, free: 2.141 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.06088, allocations: 200 kB / 467.5 MB, free: 1.945 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00381/0.06469, allocations: 1.973 MB / 469.5 MB, free: 15.97 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003435/0.06503, allocations: 486.4 kB / 470 MB, free: 15.49 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006314/0.06566, allocations: 0.7055 MB / 470.7 MB, free: 14.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005777/0.07144, allocations: 4.565 MB / 475.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.07145, allocations: 4 kB / 475.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.07145, allocations: 0 / 475.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.07147, allocations: 0 / 475.3 MB, free: 10.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.002575/0.07404, allocations: 2.308 MB / 477.6 MB, free: 7.848 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.07408, allocations: 8.031 kB / 477.6 MB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001889/0.07427, allocations: 236.8 kB / 477.8 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009013/0.07517, allocations: 446.9 kB / 478.2 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.07632, allocations: 1.018 MB / 479.3 MB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.07645, allocations: 234.7 kB / 479.5 MB, free: 5.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/0.07662, allocations: 168.3 kB / 479.7 MB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.07882, allocations: 2.249 MB / 481.9 MB, free: 3.379 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.07884, allocations: 4 kB / 481.9 MB, free: 3.375 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.07895, allocations: 64 kB / 482 MB, free: 3.312 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.07897, allocations: 44 kB / 482 MB, free: 3.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00244/0.08141, allocations: 2.692 MB / 484.7 MB, free: 0.5703 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006665/0.08808, allocations: 6.313 MB / 491 MB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.08929, allocations: 0.9793 MB / 492 MB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005514/0.08984, allocations: 0.5213 MB / 492.5 MB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004064/0.0939, allocations: 2.98 MB / 495.5 MB, free: 5.559 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.09394, allocations: 51.16 kB / 495.5 MB, free: 5.5 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002971/0.09423, allocations: 119 kB / 495.7 MB, free: 5.383 MB / 394.7 MB Notification: Performance of pre-optimization done (n=71): time 4.068e-06/0.09424, allocations: 0 / 495.7 MB, free: 5.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=95): time 0.008884/0.1031, allocations: 4.555 MB / 0.4885 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.1032, allocations: 119.8 kB / 0.4886 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/0.1045, allocations: 1.544 MB / 0.4901 GB, free: 15.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.591e-05/0.1045, allocations: 41.7 kB / 0.4902 GB, free: 15.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/0.1049, allocations: 0.9162 MB / 0.491 GB, free: 14.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.105, allocations: 357 kB / 0.4914 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002946/0.1053, allocations: 355.3 kB / 0.4917 GB, free: 13.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.433e-05/0.1054, allocations: 305.1 kB / 0.492 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006199/0.106, allocations: 0.6364 MB / 0.4926 GB, free: 12.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009163/0.1069, allocations: 1.345 MB / 0.494 GB, free: 10.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.1084, allocations: 1.933 MB / 0.4958 GB, free: 8.516 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1085, allocations: 4 kB / 0.4958 GB, free: 8.512 MB / 410.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003035/0.1115, allocations: 2.402 MB / 0.4982 GB, free: 6.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.1115, allocations: 12 kB / 0.4982 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.1115, allocations: 24 kB / 0.4982 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.1127, allocations: 379.2 kB / 0.4986 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.1139, allocations: 0.5656 MB / 0.4991 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005147/0.1191, allocations: 7.447 MB / 0.5064 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000838/0.1199, allocations: 79.86 kB / 0.5065 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.12, allocations: 108 kB / 0.5066 GB, free: 12.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005239/0.1206, allocations: 373.2 kB / 0.5069 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.1207, allocations: 131.1 kB / 0.5071 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.1231, allocations: 1.527 MB / 0.5086 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1231, allocations: 8 kB / 0.5086 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1231, allocations: 7.938 kB / 0.5086 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1231, allocations: 8.062 kB / 0.5086 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/0.1269, allocations: 2.823 MB / 0.5113 GB, free: 7.898 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.1269, allocations: 4 kB / 0.5113 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000419/0.1273, allocations: 220.5 kB / 0.5116 GB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.1285, allocations: 408.5 kB / 0.5119 GB, free: 7.262 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.165e-05/0.1285, allocations: 43.98 kB / 0.512 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004732/0.1333, allocations: 7.252 MB / 0.5191 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.1333, allocations: 15.88 kB / 0.5191 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.1363, allocations: 2.141 MB / 0.5212 GB, free: 13.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002751/0.1366, allocations: 135.1 kB / 0.5213 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-05/0.1367, allocations: 32 kB / 0.5213 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.137, allocations: 28 kB / 0.5214 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.1372, allocations: 112.3 kB / 0.5215 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.298e-05/0.1372, allocations: 51.98 kB / 0.5215 GB, free: 12.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008548/0.1381, allocations: 1.033 MB / 0.5225 GB, free: 11.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1381, allocations: 0 / 0.5225 GB, free: 11.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00197/0.1401, allocations: 0.826 MB / 0.5233 GB, free: 10.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn) * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004184/0.1442, allocations: 3.53 MB / 0.5268 GB, free: 7.285 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.1465, allocations: 1.699 MB / 0.5284 GB, free: 5.566 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.1465, allocations: 4 kB / 0.5284 GB, free: 5.562 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000816/0.1474, allocations: 0.957 MB / 0.5294 GB, free: 4.551 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009955/0.1484, allocations: 227.4 kB / 0.5296 GB, free: 4.332 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.1638, allocations: 13.33 MB / 0.5426 GB, free: 5.957 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005046/0.1643, allocations: 0.6371 MB / 0.5432 GB, free: 5.285 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007119/0.165, allocations: 322.5 kB / 0.5435 GB, free: 4.965 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000837/0.1659, allocations: 0.6682 MB / 0.5442 GB, free: 4.297 MB / 458.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1659, allocations: 0 / 0.5442 GB, free: 4.297 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2062/0.3721, allocations: 42.49 MB / 0.5857 GB, free: 148.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.651/9.023, allocations: 4.312 kB / 0.5857 GB, free: 148.7 MB / 490.7 MB " [Timeout remaining time 651] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell_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_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.97566493973136] Failed to read output from testmodel.py, exit status != 0: 9.274602671153843 9.137880748 9.064804136 Calling exit ...