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.001479/0.001479, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001664/0.001664, allocations: 215.5 kB / 22.25 MB, free: 5.082 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.341/1.341, allocations: 230.6 MB / 256 MB, free: 8.039 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.1246/0.1246, allocations: 23.86 MB / 336.3 MB, free: 11.23 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.001942/0.001942, allocations: 63.91 kB / 471.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2747, allocations: 59.86 MB / 0.5186 GB, free: 9.605 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.04078/0.3154, allocations: 31.06 MB / 0.5489 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03453/0.35, allocations: 28.91 MB / 0.5771 GB, free: 14.19 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.3516, allocations: 31.75 kB / 0.5772 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.3533, allocations: 0.6591 MB / 0.5778 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005764/0.359, allocations: 2.216 MB / 0.58 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01038/0.3694, allocations: 3.926 MB / 0.5838 GB, free: 7.316 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004183/0.3736, allocations: 2.859 MB / 0.5866 GB, free: 4.445 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.3752, allocations: 1.357 MB / 0.5879 GB, free: 3.039 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.3767, allocations: 1.348 MB / 0.5893 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001927/0.3786, allocations: 1.51 MB / 0.5907 GB, free: 176 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003501/0.379, allocations: 260 kB / 0.591 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009779/0.3888, allocations: 3.144 MB / 0.594 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009001/0.3897, allocations: 0.6076 MB / 0.5946 GB, free: 12.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001578/0.3912, allocations: 1.303 MB / 0.5959 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.4032, allocations: 6.19 MB / 0.602 GB, free: 4.637 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.4032, allocations: 4 kB / 0.602 GB, free: 4.633 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4032, allocations: 0 / 0.602 GB, free: 4.633 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.844e-05/0.4032, allocations: 0 / 0.602 GB, free: 4.633 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.005581/0.4088, allocations: 3.1 MB / 0.605 GB, free: 1.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.4089, allocations: 8.031 kB / 0.605 GB, free: 1.473 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003436/0.4092, allocations: 304.3 kB / 0.6053 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002098/0.4113, allocations: 0.557 MB / 0.6058 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.4135, allocations: 1.25 MB / 0.607 GB, free: 15.31 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/0.4137, allocations: 275.3 kB / 0.6073 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000329/0.4141, allocations: 220 kB / 0.6075 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004033/0.4181, allocations: 2.682 MB / 0.6101 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.05e-05/0.4181, allocations: 0 / 0.6101 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/0.4183, allocations: 92 kB / 0.6102 GB, free: 11.94 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.434e-05/0.4184, allocations: 52 kB / 0.6103 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005189/0.4236, allocations: 3.33 MB / 0.6135 GB, free: 8.555 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.01352/0.4371, allocations: 8.595 MB / 0.6219 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/0.4396, allocations: 1.531 MB / 0.6234 GB, free: 14.09 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.441, allocations: 0.8624 MB / 0.6243 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009643/0.4506, allocations: 4.534 MB / 0.6287 GB, free: 8.648 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.4507, allocations: 43.88 kB / 0.6287 GB, free: 8.598 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 2.645e-06/0.4507, allocations: 4 kB / 0.6287 GB, free: 8.594 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03001/0.4807, allocations: 8.115 MB / 0.6367 GB, free: 432 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.4808, allocations: 95.11 kB / 0.6367 GB, free: 316 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.4824, allocations: 1.37 MB / 0.6381 GB, free: 14.92 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.4825, allocations: 53.7 kB / 0.6381 GB, free: 14.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007474/0.4833, allocations: 1.085 MB / 0.6392 GB, free: 13.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005541/0.4838, allocations: 0.6546 MB / 0.6398 GB, free: 13.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006601/0.4845, allocations: 481.1 kB / 0.6403 GB, free: 12.63 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4846, allocations: 301.1 kB / 0.6406 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.486, allocations: 0.821 MB / 0.6414 GB, free: 11.51 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/0.4881, allocations: 1.658 MB / 0.643 GB, free: 9.465 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.4918, allocations: 2.622 MB / 0.6456 GB, free: 6.465 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.4918, allocations: 12 kB / 0.6456 GB, free: 6.453 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00682/0.4986, allocations: 3.058 MB / 0.6486 GB, free: 3.375 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/0.4987, allocations: 18.66 kB / 0.6486 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.43e-05/0.4987, allocations: 28 kB / 0.6486 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/0.5019, allocations: 0.5224 MB / 0.6491 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003503/0.5054, allocations: 0.7958 MB / 0.6499 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008815/0.5142, allocations: 7.63 MB / 0.6573 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.5159, allocations: 100.1 kB / 0.6574 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/0.5161, allocations: 143.9 kB / 0.6576 GB, free: 9.625 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.0008144/0.5169, allocations: 453.4 kB / 0.658 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003324/0.5172, allocations: 174.9 kB / 0.6582 GB, free: 9 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006577/0.5238, allocations: 2.578 MB / 0.6607 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.5238, allocations: 16 kB / 0.6607 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.5238, allocations: 8 kB / 0.6607 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.5239, allocations: 7.969 kB / 0.6607 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00995/0.5338, allocations: 4.735 MB / 0.6653 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-05/0.5338, allocations: 20.02 kB / 0.6654 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/0.5354, allocations: 411.4 kB / 0.6658 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003271/0.5387, allocations: 0.5472 MB / 0.6663 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.5389, allocations: 79.97 kB / 0.6664 GB, free: 336 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008232/0.5471, allocations: 7.427 MB / 0.6736 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.5471, allocations: 15.94 kB / 0.6736 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007001/0.5541, allocations: 3.47 MB / 0.677 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004015/0.5545, allocations: 174.8 kB / 0.6772 GB, free: 4.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/0.5547, allocations: 55.98 kB / 0.6772 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009472/0.5557, allocations: 52 kB / 0.6773 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.556, allocations: 200.6 kB / 0.6775 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.5561, allocations: 95.95 kB / 0.6776 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00112/0.5572, allocations: 0.8967 MB / 0.6785 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.5572, allocations: 0 / 0.6785 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003282/0.5605, allocations: 1.216 MB / 0.6796 GB, free: 2.031 MB / 0.5137 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.009675/0.5702, allocations: 5.243 MB / 0.6848 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004747/0.5749, allocations: 2.362 MB / 0.6871 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.968e-06/0.575, allocations: 4 kB / 0.6871 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.577, allocations: 1.364 MB / 0.6884 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.5789, allocations: 344.9 kB / 0.6887 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.028/0.6069, allocations: 17 MB / 0.7053 GB, free: 6.086 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.6081, allocations: 1.436 MB / 0.7067 GB, free: 4.613 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001514/0.6096, allocations: 466.4 kB / 0.7072 GB, free: 4.152 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/0.6109, allocations: 0.9678 MB / 0.7081 GB, free: 3.184 MB / 0.545 GB Notification: Performance of SimCode: time 6.82e-07/0.6109, allocations: 0 / 0.7081 GB, free: 3.184 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3043/0.9152, allocations: 60.7 MB / 0.7674 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.21/19.13, allocations: 3.438 kB / 0.7674 GB, free: 158.1 MB / 0.5606 GB " [Timeout remaining time 641] (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: 21.71377105699503] Failed to read output from testmodel.py, exit status != 0: 19.27488725799776 19.284487596 18.878938584 Calling exit ...