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.001705/0.001705, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001608/0.001608, allocations: 221.4 kB / 22.25 MB, free: 5.102 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.343/1.343, allocations: 230.6 MB / 256 MB, free: 7.805 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.1354/0.1354, allocations: 23.92 MB / 336.4 MB, free: 11.02 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.001908/0.001908, allocations: 67.89 kB / 471.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2965, allocations: 59.87 MB / 0.5186 GB, free: 9.5 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.07188/0.3684, allocations: 29.86 MB / 0.5478 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03363/0.4021, allocations: 25.31 MB / 0.5725 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001878/0.4039, allocations: 31.75 kB / 0.5725 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.4056, allocations: 0.5969 MB / 0.5731 GB, free: 2.016 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006186/0.4118, allocations: 2.157 MB / 0.5752 GB, free: 15.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01073/0.4225, allocations: 3.93 MB / 0.579 GB, free: 11.89 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004587/0.4271, allocations: 2.855 MB / 0.5818 GB, free: 9.023 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.4291, allocations: 1.369 MB / 0.5832 GB, free: 7.605 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.4309, allocations: 1.352 MB / 0.5845 GB, free: 6.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002032/0.4329, allocations: 1.506 MB / 0.586 GB, free: 4.738 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004118/0.4333, allocations: 260 kB / 0.5862 GB, free: 4.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00914/0.4425, allocations: 3.023 MB / 0.5892 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007488/0.4432, allocations: 0.6153 MB / 0.5898 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.4447, allocations: 1.089 MB / 0.5908 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.4574, allocations: 6.19 MB / 0.5969 GB, free: 9.531 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4574, allocations: 0 / 0.5969 GB, free: 9.531 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4574, allocations: 0 / 0.5969 GB, free: 9.531 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.015e-05/0.4575, allocations: 4 kB / 0.5969 GB, free: 9.527 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.005353/0.4628, allocations: 3.08 MB / 0.5999 GB, free: 6.395 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.4628, allocations: 16.02 kB / 0.5999 GB, free: 6.379 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003347/0.4632, allocations: 300.3 kB / 0.6002 GB, free: 6.074 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.4653, allocations: 0.5609 MB / 0.6007 GB, free: 5.512 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.4675, allocations: 1.243 MB / 0.6019 GB, free: 4.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.4677, allocations: 283.2 kB / 0.6022 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003496/0.4681, allocations: 227.9 kB / 0.6024 GB, free: 3.703 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00406/0.4722, allocations: 2.675 MB / 0.605 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.4722, allocations: 0 / 0.605 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001942/0.4724, allocations: 88 kB / 0.6051 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.602e-05/0.4724, allocations: 52 kB / 0.6052 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005078/0.4775, allocations: 3.291 MB / 0.6084 GB, free: 13.5 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.01349/0.491, allocations: 7.252 MB / 0.6155 GB, free: 6.102 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.4935, allocations: 1.531 MB / 0.617 GB, free: 4.566 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.4948, allocations: 0.8546 MB / 0.6178 GB, free: 3.699 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009527/0.5043, allocations: 4.285 MB / 0.622 GB, free: 15.39 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.5043, allocations: 51.86 kB / 0.622 GB, free: 15.33 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 1.001e-05/0.5044, allocations: 0 / 0.622 GB, free: 15.33 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.02765/0.532, allocations: 8.111 MB / 0.63 GB, free: 7.164 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.5321, allocations: 103.1 kB / 0.6301 GB, free: 7.043 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/0.5338, allocations: 1.416 MB / 0.6314 GB, free: 5.609 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.5339, allocations: 61.64 kB / 0.6315 GB, free: 5.543 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007677/0.5347, allocations: 1.077 MB / 0.6325 GB, free: 4.453 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005786/0.5353, allocations: 0.6585 MB / 0.6332 GB, free: 3.789 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006714/0.5359, allocations: 485 kB / 0.6337 GB, free: 3.309 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5361, allocations: 301.1 kB / 0.6339 GB, free: 3.012 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.5374, allocations: 0.8171 MB / 0.6347 GB, free: 2.191 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/0.5395, allocations: 1.665 MB / 0.6364 GB, free: 144 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003691/0.5432, allocations: 2.614 MB / 0.6389 GB, free: 13.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/0.5432, allocations: 8 kB / 0.6389 GB, free: 13.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006521/0.5497, allocations: 3.054 MB / 0.6419 GB, free: 10.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.5498, allocations: 16 kB / 0.6419 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.443e-05/0.5498, allocations: 28.34 kB / 0.6419 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002877/0.5527, allocations: 0.5182 MB / 0.6425 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003532/0.5562, allocations: 0.7997 MB / 0.6432 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008892/0.5651, allocations: 7.588 MB / 0.6506 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.5669, allocations: 100.3 kB / 0.6507 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002586/0.5672, allocations: 148 kB / 0.6509 GB, free: 356 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.0009316/0.5681, allocations: 456.8 kB / 0.6513 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.5685, allocations: 178.9 kB / 0.6515 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006267/0.5747, allocations: 2.578 MB / 0.654 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/0.5747, allocations: 16 kB / 0.654 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5748, allocations: 4 kB / 0.654 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.5748, allocations: 7.969 kB / 0.654 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009338/0.5841, allocations: 4.465 MB / 0.6584 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/0.5841, allocations: 12 kB / 0.6584 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.5857, allocations: 420.3 kB / 0.6588 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002995/0.5887, allocations: 0.547 MB / 0.6593 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.5888, allocations: 79.97 kB / 0.6594 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00796/0.5968, allocations: 7.391 MB / 0.6666 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/0.5968, allocations: 15.94 kB / 0.6666 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006857/0.6036, allocations: 3.466 MB / 0.67 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005222/0.6042, allocations: 174.8 kB / 0.6702 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/0.6044, allocations: 59.98 kB / 0.6703 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008982/0.6053, allocations: 48 kB / 0.6703 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/0.6056, allocations: 200.6 kB / 0.6705 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/0.6058, allocations: 91.97 kB / 0.6706 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001168/0.607, allocations: 0.9006 MB / 0.6715 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.607, allocations: 0 / 0.6715 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003557/0.6105, allocations: 1.216 MB / 0.6726 GB, free: 9.062 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.009095/0.6196, allocations: 5.243 MB / 0.6778 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004597/0.6242, allocations: 2.362 MB / 0.6801 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/0.6242, allocations: 0 / 0.6801 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.6262, allocations: 1.375 MB / 0.6814 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.6281, allocations: 348.5 kB / 0.6818 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/0.6566, allocations: 17.01 MB / 0.6984 GB, free: 13.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009854/0.6576, allocations: 0.8617 MB / 0.6992 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001509/0.6591, allocations: 454.4 kB / 0.6996 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001325/0.6605, allocations: 0.9677 MB / 0.7006 GB, free: 10.79 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/0.6605, allocations: 0 / 0.7006 GB, free: 10.79 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.317/0.9775, allocations: 61.01 MB / 0.7602 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.76, allocations: 2.812 kB / 0.7602 GB, free: 166.4 MB / 0.5606 GB " [Timeout remaining time 644] (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 os._exit(0), Time elapsed: 18.437609474000055] Failed to read output from testmodel.py, exit status != 0: 15.913472424988868 15.922869798 15.463282692 Calling exit ...