Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001309/0.001309, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001428/0.001428, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.405/1.405, allocations: 230.6 MB / 256 MB, free: 7.996 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.1394/0.1394, allocations: 23.9 MB / 336.3 MB, free: 11.14 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.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_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.001928/0.001928, allocations: 71.89 kB / 471.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3252, allocations: 59.88 MB / 0.5186 GB, free: 9.602 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.ElectrochemicalCell): time 0.04275/0.368, allocations: 31.07 MB / 0.549 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03974/0.4077, allocations: 28.91 MB / 0.5772 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.4097, allocations: 31.75 kB / 0.5772 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002253/0.4119, allocations: 0.663 MB / 0.5779 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007011/0.4189, allocations: 2.212 MB / 0.5801 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01079/0.4297, allocations: 3.934 MB / 0.5839 GB, free: 7.172 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004467/0.4342, allocations: 2.856 MB / 0.5867 GB, free: 4.305 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002175/0.4364, allocations: 1.349 MB / 0.588 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.4384, allocations: 1.352 MB / 0.5893 GB, free: 1.551 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002557/0.441, allocations: 1.503 MB / 0.5908 GB, free: 44 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007166/0.4417, allocations: 260 kB / 0.591 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009627/0.4513, allocations: 3.147 MB / 0.5941 GB, free: 12.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.4525, allocations: 0.6037 MB / 0.5947 GB, free: 12.03 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002307/0.4548, allocations: 1.303 MB / 0.596 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01496/0.4697, allocations: 6.198 MB / 0.602 GB, free: 4.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.4698, allocations: 4 kB / 0.602 GB, free: 4.496 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4698, allocations: 0 / 0.602 GB, free: 4.496 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000118/0.4699, allocations: 0 / 0.602 GB, free: 4.496 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.007322/0.4772, allocations: 3.096 MB / 0.6051 GB, free: 1.348 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.4772, allocations: 8.031 kB / 0.6051 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004998/0.4777, allocations: 304.3 kB / 0.6054 GB, free: 1.031 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002452/0.4802, allocations: 0.5648 MB / 0.6059 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002657/0.4828, allocations: 1.247 MB / 0.6071 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/0.4831, allocations: 275.3 kB / 0.6074 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004176/0.4835, allocations: 224 kB / 0.6076 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004597/0.4881, allocations: 2.686 MB / 0.6102 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.726e-05/0.4882, allocations: 3.984 kB / 0.6102 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/0.4884, allocations: 88 kB / 0.6103 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.705e-05/0.4884, allocations: 52 kB / 0.6104 GB, free: 11.74 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005283/0.4937, allocations: 3.334 MB / 0.6136 GB, free: 8.406 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.0142/0.5079, allocations: 8.579 MB / 0.622 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002563/0.5105, allocations: 1.535 MB / 0.6235 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.5118, allocations: 0.8586 MB / 0.6243 GB, free: 13.08 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.5219, allocations: 4.534 MB / 0.6288 GB, free: 8.516 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.522, allocations: 55.81 kB / 0.6288 GB, free: 8.453 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.066e-06/0.522, allocations: 0 / 0.6288 GB, free: 8.453 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03129/0.5533, allocations: 8.115 MB / 0.6367 GB, free: 288 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.5534, allocations: 95.11 kB / 0.6368 GB, free: 172 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.5552, allocations: 1.378 MB / 0.6382 GB, free: 14.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002808/0.5555, allocations: 53.7 kB / 0.6382 GB, free: 14.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008132/0.5563, allocations: 1.081 MB / 0.6393 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006498/0.5569, allocations: 0.6585 MB / 0.6399 GB, free: 12.96 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006822/0.5576, allocations: 477.1 kB / 0.6404 GB, free: 12.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.5577, allocations: 305.2 kB / 0.6407 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.5591, allocations: 0.821 MB / 0.6415 GB, free: 11.36 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/0.5613, allocations: 1.658 MB / 0.6431 GB, free: 9.316 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.5652, allocations: 2.61 MB / 0.6456 GB, free: 6.328 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/0.5652, allocations: 8 kB / 0.6456 GB, free: 6.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007164/0.5724, allocations: 3.062 MB / 0.6486 GB, free: 3.238 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.5724, allocations: 19.98 kB / 0.6487 GB, free: 3.219 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/0.5725, allocations: 28 kB / 0.6487 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/0.5757, allocations: 0.5105 MB / 0.6492 GB, free: 2.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00372/0.5794, allocations: 0.7997 MB / 0.65 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009431/0.5888, allocations: 7.642 MB / 0.6574 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.5906, allocations: 99.83 kB / 0.6575 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003129/0.5909, allocations: 139.9 kB / 0.6577 GB, free: 9.484 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.0009503/0.5919, allocations: 453.5 kB / 0.6581 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004433/0.5923, allocations: 178.8 kB / 0.6583 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006997/0.5993, allocations: 2.578 MB / 0.6608 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.356e-05/0.5993, allocations: 16 kB / 0.6608 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.5993, allocations: 4 kB / 0.6608 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.196e-05/0.5994, allocations: 8.109 kB / 0.6608 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/0.61, allocations: 4.734 MB / 0.6654 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.61, allocations: 12 kB / 0.6654 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.6117, allocations: 415.9 kB / 0.6658 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003283/0.615, allocations: 0.547 MB / 0.6664 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002338/0.6152, allocations: 79.97 kB / 0.6664 GB, free: 196 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008583/0.6238, allocations: 7.431 MB / 0.6737 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.419e-05/0.6238, allocations: 15.94 kB / 0.6737 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007316/0.6311, allocations: 3.462 MB / 0.6771 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005056/0.6316, allocations: 186.6 kB / 0.6773 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002654/0.6319, allocations: 55.98 kB / 0.6773 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009894/0.6329, allocations: 48 kB / 0.6774 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/0.6332, allocations: 200.7 kB / 0.6776 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001635/0.6334, allocations: 87.97 kB / 0.6776 GB, free: 4.016 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001194/0.6346, allocations: 0.9045 MB / 0.6785 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6346, allocations: 0 / 0.6785 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003849/0.6384, allocations: 1.212 MB / 0.6797 GB, free: 1.895 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.01022/0.6486, allocations: 5.243 MB / 0.6848 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004859/0.6535, allocations: 2.362 MB / 0.6871 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.6535, allocations: 4 kB / 0.6871 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002173/0.6557, allocations: 1.368 MB / 0.6885 GB, free: 8.645 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.6576, allocations: 354.9 kB / 0.6888 GB, free: 8.309 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03118/0.6888, allocations: 17 MB / 0.7054 GB, free: 5.945 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.69, allocations: 1.436 MB / 0.7068 GB, free: 4.473 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001732/0.6918, allocations: 462.4 kB / 0.7073 GB, free: 4.016 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/0.6932, allocations: 0.9677 MB / 0.7082 GB, free: 3.047 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/0.6932, allocations: 0 / 0.7082 GB, free: 3.047 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3141/1.007, allocations: 60.69 MB / 0.7675 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.53/19.54, allocations: 16.2 kB / 0.7675 GB, free: 156.7 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.227615820003848] Failed to read output from testmodel.py, exit status != 0: 19.690274642001896 19.701212885 19.228904414 Calling exit ...