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.001879/0.001879, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002338/0.002338, allocations: 209.9 kB / 22.24 MB, free: 4.855 MB / 14.72 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 1.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.1377/0.1377, allocations: 24 MB / 336.4 MB, free: 10.83 MB / 270.1 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: Chemical requested package Modelica of version 4.0.0. Modelica 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.0023/0.0023, allocations: 71.89 kB / 471.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3064, allocations: 59.9 MB / 0.5187 GB, free: 9.477 MB / 382.1 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.08075/0.3872, allocations: 28.26 MB / 0.5463 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04364/0.4308, allocations: 17.13 MB / 0.5631 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002819/0.4336, allocations: 27.75 kB / 0.5631 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003053/0.4367, allocations: 454.9 kB / 0.5635 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007141/0.4438, allocations: 1.208 MB / 0.5647 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01521/0.459, allocations: 2.894 MB / 0.5675 GB, free: 7.723 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005463/0.4645, allocations: 2.09 MB / 0.5696 GB, free: 5.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00264/0.4671, allocations: 1.065 MB / 0.5706 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.4693, allocations: 0.931 MB / 0.5715 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/0.4719, allocations: 0.9413 MB / 0.5724 GB, free: 2.629 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006826/0.4726, allocations: 200 kB / 0.5726 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009174/0.4818, allocations: 1.958 MB / 0.5745 GB, free: 484 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009487/0.4827, allocations: 470.6 kB / 0.575 GB, free: 12 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001633/0.4843, allocations: 0.821 MB / 0.5758 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.497, allocations: 4.35 MB / 0.58 GB, free: 10.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.497, allocations: 0 / 0.58 GB, free: 10.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.497, allocations: 4 kB / 0.58 GB, free: 10.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.506e-05/0.4971, allocations: 0 / 0.58 GB, free: 10.82 MB / 430.1 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.007255/0.5043, allocations: 2.331 MB / 0.5823 GB, free: 8.441 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.5044, allocations: 11.97 kB / 0.5823 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004531/0.5048, allocations: 240.8 kB / 0.5826 GB, free: 8.184 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00312/0.508, allocations: 450.8 kB / 0.583 GB, free: 7.742 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003548/0.5115, allocations: 1.011 MB / 0.584 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/0.5118, allocations: 242.2 kB / 0.5842 GB, free: 6.438 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004765/0.5123, allocations: 168 kB / 0.5844 GB, free: 6.273 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00634/0.5187, allocations: 2.233 MB / 0.5865 GB, free: 3.973 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-05/0.5187, allocations: 3.938 kB / 0.5866 GB, free: 3.969 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002635/0.519, allocations: 72 kB / 0.5866 GB, free: 3.898 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.403e-05/0.519, allocations: 44 kB / 0.5867 GB, free: 3.855 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006773/0.5258, allocations: 2.684 MB / 0.5893 GB, free: 1.164 MB / 430.1 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.01859/0.5444, allocations: 6.34 MB / 0.5955 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/0.5475, allocations: 0.9757 MB / 0.5964 GB, free: 9.668 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001527/0.5491, allocations: 0.5096 MB / 0.5969 GB, free: 9.148 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01246/0.5615, allocations: 2.982 MB / 0.5998 GB, free: 6.145 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.243e-05/0.5616, allocations: 47.14 kB / 0.5999 GB, free: 6.09 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008127/0.5624, allocations: 115 kB / 0.6 GB, free: 5.977 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 5.27e-06/0.5624, allocations: 0 / 0.6 GB, free: 5.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.03067/0.5931, allocations: 4.559 MB / 0.6044 GB, free: 1.359 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.5932, allocations: 123.8 kB / 0.6046 GB, free: 1.211 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.5965, allocations: 1.544 MB / 0.6061 GB, free: 15.65 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001911/0.5967, allocations: 45.7 kB / 0.6061 GB, free: 15.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.5978, allocations: 0.9239 MB / 0.607 GB, free: 14.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005777/0.5984, allocations: 357.1 kB / 0.6074 GB, free: 14.31 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008539/0.5993, allocations: 359.3 kB / 0.6077 GB, free: 13.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.5994, allocations: 305.1 kB / 0.608 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/0.6013, allocations: 0.6325 MB / 0.6086 GB, free: 13.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00285/0.6042, allocations: 1.349 MB / 0.6099 GB, free: 11.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00469/0.6089, allocations: 1.933 MB / 0.6118 GB, free: 9.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.6089, allocations: 11.94 kB / 0.6118 GB, free: 9.059 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.009496/0.6184, allocations: 2.382 MB / 0.6141 GB, free: 6.656 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/0.6184, allocations: 19.94 kB / 0.6142 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.732e-05/0.6185, allocations: 28 kB / 0.6142 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00244/0.6209, allocations: 379.2 kB / 0.6146 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/0.6236, allocations: 0.5617 MB / 0.6151 GB, free: 5.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009545/0.6332, allocations: 7.458 MB / 0.6224 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.6346, allocations: 79.86 kB / 0.6225 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002861/0.6349, allocations: 112.2 kB / 0.6226 GB, free: 13.5 MB / 478.1 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.0007819/0.6357, allocations: 369 kB / 0.6229 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003795/0.6361, allocations: 135.1 kB / 0.6231 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004654/0.6407, allocations: 1.534 MB / 0.6246 GB, free: 11.44 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.6407, allocations: 8 kB / 0.6246 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.6407, allocations: 4 kB / 0.6246 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.6408, allocations: 3.984 kB / 0.6246 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006956/0.6477, allocations: 2.815 MB / 0.6273 GB, free: 8.461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.6477, allocations: 8 kB / 0.6273 GB, free: 8.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008734/0.6486, allocations: 219.8 kB / 0.6275 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002558/0.6512, allocations: 412.5 kB / 0.6279 GB, free: 7.816 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.6513, allocations: 43.98 kB / 0.628 GB, free: 7.773 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008762/0.66, allocations: 7.256 MB / 0.6351 GB, free: 0 / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.049e-05/0.6601, allocations: 11.98 kB / 0.6351 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005276/0.6653, allocations: 2.172 MB / 0.6372 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004562/0.6658, allocations: 127.2 kB / 0.6373 GB, free: 13.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/0.666, allocations: 28 kB / 0.6373 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006799/0.6667, allocations: 24 kB / 0.6374 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.6669, allocations: 120.4 kB / 0.6375 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.897e-05/0.667, allocations: 55.97 kB / 0.6375 GB, free: 13.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.6683, allocations: 1.029 MB / 0.6385 GB, free: 12.31 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6683, allocations: 0 / 0.6385 GB, free: 12.31 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002856/0.6712, allocations: 0.826 MB / 0.6393 GB, free: 11.48 MB / 494.1 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.007125/0.6783, allocations: 3.505 MB / 0.6428 GB, free: 7.836 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003543/0.6818, allocations: 1.703 MB / 0.6444 GB, free: 6.113 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/0.6819, allocations: 0 / 0.6444 GB, free: 6.113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.6833, allocations: 0.9686 MB / 0.6454 GB, free: 5.094 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.6848, allocations: 219.1 kB / 0.6456 GB, free: 4.879 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/0.7078, allocations: 13.47 MB / 0.6587 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007651/0.7086, allocations: 0.6449 MB / 0.6594 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00108/0.7097, allocations: 318.5 kB / 0.6597 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009231/0.7106, allocations: 0.6632 MB / 0.6603 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of SimCode: time 1.042e-06/0.7106, allocations: 0 / 0.6603 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0937/0.8043, allocations: 42.34 MB / 0.7017 GB, free: 10.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/16.02, allocations: 6.594 kB / 0.7017 GB, free: 10.66 MB / 0.545 GB " [Timeout remaining time 644] (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: 18.903952963184565] Failed to read output from testmodel.py, exit status != 0: 16.173884090036154 16.199368619 15.697026498 Calling exit ...