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.00129/0.00129, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001445/0.001445, allocations: 220.7 kB / 22.25 MB, free: 5.258 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.411/1.411, allocations: 230.6 MB / 256 MB, free: 7.82 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.1294/0.1294, allocations: 23.89 MB / 336.3 MB, free: 11.07 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.001985/0.001985, allocations: 75.89 kB / 471.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3046, allocations: 59.85 MB / 0.5185 GB, free: 9.523 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.07479/0.3794, allocations: 29.86 MB / 0.5477 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0349/0.4143, allocations: 25.31 MB / 0.5724 GB, free: 2.746 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002461/0.4168, allocations: 31.75 kB / 0.5724 GB, free: 2.715 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002158/0.4189, allocations: 0.5969 MB / 0.573 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007026/0.426, allocations: 2.161 MB / 0.5751 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01099/0.437, allocations: 3.93 MB / 0.579 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004525/0.4415, allocations: 2.852 MB / 0.5817 GB, free: 9.121 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002313/0.4438, allocations: 1.373 MB / 0.5831 GB, free: 7.699 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.4463, allocations: 1.344 MB / 0.5844 GB, free: 6.352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002237/0.4485, allocations: 1.503 MB / 0.5859 GB, free: 4.844 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004816/0.449, allocations: 260 kB / 0.5861 GB, free: 4.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009139/0.4581, allocations: 3.034 MB / 0.5891 GB, free: 1.551 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.4592, allocations: 0.6076 MB / 0.5897 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001809/0.461, allocations: 1.093 MB / 0.5907 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01447/0.4755, allocations: 6.183 MB / 0.5968 GB, free: 9.637 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4755, allocations: 0 / 0.5968 GB, free: 9.637 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.4755, allocations: 3.984 kB / 0.5968 GB, free: 9.633 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.089e-05/0.4755, allocations: 0 / 0.5968 GB, free: 9.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.006451/0.482, allocations: 3.084 MB / 0.5998 GB, free: 6.496 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.482, allocations: 8.031 kB / 0.5998 GB, free: 6.488 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000365/0.4824, allocations: 308.3 kB / 0.6001 GB, free: 6.176 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002327/0.4847, allocations: 0.5609 MB / 0.6006 GB, free: 5.613 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002515/0.4872, allocations: 1.246 MB / 0.6019 GB, free: 4.328 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.4875, allocations: 275.3 kB / 0.6021 GB, free: 4.031 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003757/0.4879, allocations: 224 kB / 0.6023 GB, free: 3.812 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004497/0.4924, allocations: 2.679 MB / 0.605 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.4924, allocations: 3.938 kB / 0.605 GB, free: 1.039 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002099/0.4926, allocations: 92 kB / 0.605 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.47e-05/0.4927, allocations: 52 kB / 0.6051 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00525/0.4979, allocations: 3.295 MB / 0.6083 GB, free: 13.6 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.01377/0.5117, allocations: 7.255 MB / 0.6154 GB, free: 6.191 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002621/0.5143, allocations: 1.527 MB / 0.6169 GB, free: 4.66 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.5157, allocations: 0.8547 MB / 0.6177 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.5259, allocations: 4.285 MB / 0.6219 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.526, allocations: 43.88 kB / 0.6219 GB, free: 15.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.256e-06/0.526, allocations: 0 / 0.6219 GB, free: 15.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.02939/0.5554, allocations: 8.122 MB / 0.6299 GB, free: 7.254 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.5555, allocations: 95.11 kB / 0.63 GB, free: 7.141 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.5573, allocations: 1.42 MB / 0.6314 GB, free: 5.703 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.5574, allocations: 53.7 kB / 0.6314 GB, free: 5.645 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008362/0.5582, allocations: 1.081 MB / 0.6325 GB, free: 4.551 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006195/0.5589, allocations: 0.6585 MB / 0.6331 GB, free: 3.887 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007013/0.5596, allocations: 481 kB / 0.6336 GB, free: 3.41 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5597, allocations: 301.1 kB / 0.6339 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.5611, allocations: 0.821 MB / 0.6347 GB, free: 2.289 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/0.5633, allocations: 1.665 MB / 0.6363 GB, free: 244 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003816/0.5672, allocations: 2.61 MB / 0.6388 GB, free: 13.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.5672, allocations: 8 kB / 0.6388 GB, free: 13.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006782/0.574, allocations: 3.058 MB / 0.6418 GB, free: 10.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.574, allocations: 23.98 kB / 0.6418 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.92e-05/0.574, allocations: 28 kB / 0.6419 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002972/0.577, allocations: 0.5222 MB / 0.6424 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003579/0.5806, allocations: 0.7997 MB / 0.6432 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009108/0.5897, allocations: 7.584 MB / 0.6506 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.5914, allocations: 104.1 kB / 0.6507 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/0.5917, allocations: 143.8 kB / 0.6508 GB, free: 452 kB / 494.1 MB 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.0009116/0.5926, allocations: 457 kB / 0.6512 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003772/0.593, allocations: 170.9 kB / 0.6514 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006636/0.5996, allocations: 2.574 MB / 0.6539 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.5996, allocations: 20 kB / 0.6539 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5996, allocations: 0 / 0.6539 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.5996, allocations: 7.969 kB / 0.6539 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009973/0.6096, allocations: 4.478 MB / 0.6583 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/0.6096, allocations: 16.03 kB / 0.6583 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.6112, allocations: 411.5 kB / 0.6587 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002985/0.6142, allocations: 0.5432 MB / 0.6593 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.6143, allocations: 83.95 kB / 0.6593 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008294/0.6226, allocations: 7.388 MB / 0.6666 GB, free: 15.51 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/0.6227, allocations: 23.88 kB / 0.6666 GB, free: 15.48 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006962/0.6296, allocations: 3.466 MB / 0.67 GB, free: 11.84 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004743/0.6301, allocations: 170.8 kB / 0.6701 GB, free: 11.67 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002387/0.6303, allocations: 52 kB / 0.6702 GB, free: 11.62 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009099/0.6312, allocations: 51.98 kB / 0.6702 GB, free: 11.57 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/0.6316, allocations: 200.6 kB / 0.6704 GB, free: 11.37 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/0.6317, allocations: 95.97 kB / 0.6705 GB, free: 11.28 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.001221/0.633, allocations: 0.8967 MB / 0.6714 GB, free: 10.38 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.11e-07/0.633, allocations: 0 / 0.6714 GB, free: 10.38 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.003757/0.6367, allocations: 1.212 MB / 0.6726 GB, free: 9.164 MB / 0.5138 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.009818/0.6465, allocations: 5.249 MB / 0.6777 GB, free: 3.719 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.005215/0.6517, allocations: 2.362 MB / 0.68 GB, free: 1.336 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/0.6518, allocations: 0 / 0.68 GB, free: 1.336 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002273/0.654, allocations: 1.375 MB / 0.6813 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.656, allocations: 352.4 kB / 0.6817 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02985/0.6859, allocations: 17.01 MB / 0.6983 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009882/0.6869, allocations: 0.8539 MB / 0.6991 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001632/0.6885, allocations: 462.3 kB / 0.6996 GB, free: 11.85 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/0.6899, allocations: 0.9717 MB / 0.7005 GB, free: 10.88 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/0.6899, allocations: 0 / 0.7005 GB, free: 10.88 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3256/1.015, allocations: 61.01 MB / 0.7601 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.73, allocations: 2.969 kB / 0.7601 GB, free: 166.6 MB / 0.5606 GB " [Timeout remaining time 644] (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 os._exit(0), Time elapsed: 18.387539166986244] Failed to read output from testmodel.py, exit status != 0: 15.885408521979116 15.896695715 15.418645467 Calling exit ...