Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.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.001839/0.001839, allocations: 109.6 kB / 16.46 MB, free: 6.453 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.002277/0.002277, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.486/1.486, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1475/0.1475, allocations: 23.84 MB / 332.7 MB, free: 12.36 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_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.001992/0.001992, allocations: 63.84 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3595, allocations: 59.82 MB / 0.5135 GB, free: 8.387 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.ElectrochemicalCell): time 0.04856/0.4081, allocations: 30.85 MB / 0.5436 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03902/0.4471, allocations: 28.84 MB / 0.5718 GB, free: 15.42 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002303/0.4494, allocations: 35.75 kB / 0.5718 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.4516, allocations: 0.6501 MB / 0.5724 GB, free: 14.8 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00716/0.4587, allocations: 2.2 MB / 0.5746 GB, free: 12.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01182/0.4706, allocations: 3.891 MB / 0.5784 GB, free: 8.672 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004745/0.4753, allocations: 2.844 MB / 0.5811 GB, free: 5.812 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.4775, allocations: 1.38 MB / 0.5825 GB, free: 4.383 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.4796, allocations: 1.348 MB / 0.5838 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002464/0.482, allocations: 1.51 MB / 0.5853 GB, free: 1.516 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006159/0.4827, allocations: 260 kB / 0.5855 GB, free: 1.262 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009562/0.4922, allocations: 3.144 MB / 0.5886 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.4932, allocations: 0.6076 MB / 0.5892 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001862/0.4951, allocations: 1.303 MB / 0.5905 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01497/0.5101, allocations: 6.198 MB / 0.5965 GB, free: 5.973 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.5101, allocations: 0 / 0.5965 GB, free: 5.973 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5101, allocations: 4 kB / 0.5965 GB, free: 5.969 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.5102, allocations: 0 / 0.5965 GB, free: 5.969 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.008374/0.5186, allocations: 3.167 MB / 0.5996 GB, free: 2.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/0.5186, allocations: 8.031 kB / 0.5996 GB, free: 2.723 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004364/0.5191, allocations: 312.2 kB / 0.5999 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002625/0.5217, allocations: 0.5609 MB / 0.6005 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002887/0.5246, allocations: 1.311 MB / 0.6018 GB, free: 496 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002612/0.5248, allocations: 227.9 kB / 0.602 GB, free: 252 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005176/0.5254, allocations: 224 kB / 0.6022 GB, free: 28 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00527/0.5306, allocations: 2.667 MB / 0.6048 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.149e-05/0.5307, allocations: 7.938 kB / 0.6048 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.5309, allocations: 88 kB / 0.6049 GB, free: 13.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.203e-05/0.5309, allocations: 52 kB / 0.6049 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006107/0.5371, allocations: 3.306 MB / 0.6082 GB, free: 9.809 MB / 462.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.01584/0.5529, allocations: 8.683 MB / 0.6166 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003113/0.556, allocations: 1.915 MB / 0.6185 GB, free: 14.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.5575, allocations: 0.8546 MB / 0.6193 GB, free: 13.9 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01277/0.5703, allocations: 7.9 MB / 0.6271 GB, free: 5.152 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/0.5704, allocations: 51.88 kB / 0.6271 GB, free: 5.094 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.787e-06/0.5704, allocations: 0 / 0.6271 GB, free: 5.094 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03353/0.6039, allocations: 8.258 MB / 0.6352 GB, free: 12.74 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/0.604, allocations: 95.11 kB / 0.6353 GB, free: 12.63 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.6059, allocations: 1.366 MB / 0.6366 GB, free: 11.25 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002436/0.6062, allocations: 53.7 kB / 0.6366 GB, free: 11.19 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009119/0.6071, allocations: 1.085 MB / 0.6377 GB, free: 10.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008118/0.6079, allocations: 0.6585 MB / 0.6384 GB, free: 9.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008106/0.6087, allocations: 477.1 kB / 0.6388 GB, free: 8.957 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.6089, allocations: 305.1 kB / 0.6391 GB, free: 8.656 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.6104, allocations: 0.817 MB / 0.6399 GB, free: 7.836 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002362/0.6128, allocations: 1.654 MB / 0.6415 GB, free: 5.793 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004038/0.6168, allocations: 2.606 MB / 0.6441 GB, free: 2.809 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.738e-05/0.6169, allocations: 8 kB / 0.6441 GB, free: 2.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007254/0.6241, allocations: 3.046 MB / 0.647 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.6241, allocations: 16 kB / 0.6471 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-05/0.6242, allocations: 28 kB / 0.6471 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003207/0.6274, allocations: 0.5146 MB / 0.6476 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/0.6314, allocations: 0.7997 MB / 0.6484 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.6414, allocations: 8.045 MB / 0.6562 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.6434, allocations: 100.2 kB / 0.6563 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.6437, allocations: 143.9 kB / 0.6565 GB, free: 5.461 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001002/0.6447, allocations: 455.9 kB / 0.6569 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005135/0.6452, allocations: 174.9 kB / 0.6571 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007154/0.6524, allocations: 2.566 MB / 0.6596 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.854e-05/0.6524, allocations: 20 kB / 0.6596 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.6524, allocations: 4 kB / 0.6596 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-05/0.6525, allocations: 7.969 kB / 0.6596 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.6638, allocations: 4.775 MB / 0.6643 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.489e-05/0.6638, allocations: 12 kB / 0.6643 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/0.6656, allocations: 415.4 kB / 0.6647 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003439/0.6691, allocations: 0.5434 MB / 0.6652 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003638/0.6694, allocations: 79.97 kB / 0.6653 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009137/0.6786, allocations: 7.832 MB / 0.6729 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.426e-05/0.6786, allocations: 28 kB / 0.6729 GB, free: 3.664 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007469/0.6861, allocations: 3.458 MB / 0.6763 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006625/0.6867, allocations: 255.8 kB / 0.6766 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/0.687, allocations: 52.17 kB / 0.6766 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009885/0.688, allocations: 55.98 kB / 0.6767 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/0.6883, allocations: 196.7 kB / 0.6769 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/0.6885, allocations: 95.95 kB / 0.6769 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001238/0.6897, allocations: 0.885 MB / 0.6778 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.6897, allocations: 0 / 0.6778 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004134/0.6939, allocations: 1.219 MB / 0.679 GB, free: 13.25 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01042/0.7043, allocations: 5.242 MB / 0.6841 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005501/0.7098, allocations: 2.357 MB / 0.6864 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.7098, allocations: 0 / 0.6864 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.7122, allocations: 1.368 MB / 0.6878 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.7143, allocations: 353.4 kB / 0.6881 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03133/0.7456, allocations: 16.96 MB / 0.7047 GB, free: 1.367 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.7469, allocations: 1.436 MB / 0.7061 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001682/0.7486, allocations: 470.3 kB / 0.7065 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/0.75, allocations: 0.9677 MB / 0.7075 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/0.75, allocations: 0 / 0.7075 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.332/1.082, allocations: 58.66 MB / 0.7647 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.67/19.75, allocations: 6.359 kB / 0.7647 GB, free: 156.6 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.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_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.70237309699587] Failed to read output from testmodel.py, exit status != 0: 19.878670764999697 19.887635096 19.375189702 Calling exit ...