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.0007752/0.0007752, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008166/0.0008166, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8758/0.8758, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.08237/0.08237, allocations: 17.37 MB / 276.6 MB, free: 11.83 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 411.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.163e-05/2.317e-05, allocations: 3.125 kB / 411.4 MB, free: 13.2 MB / 330.7 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.02806/0.02808, allocations: 30.18 MB / 441.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02138/0.04946, allocations: 25.3 MB / 466.9 MB, free: 2.863 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.0513, allocations: 35.75 kB / 466.9 MB, free: 2.828 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001467/0.05276, allocations: 0.6045 MB / 467.5 MB, free: 2.219 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005366/0.05813, allocations: 2.23 MB / 469.8 MB, free: 15.97 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008608/0.06674, allocations: 4.053 MB / 473.8 MB, free: 11.89 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003745/0.07048, allocations: 2.953 MB / 476.8 MB, free: 8.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.07218, allocations: 1.346 MB / 478.1 MB, free: 7.535 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002177/0.07436, allocations: 1.895 MB / 480 MB, free: 5.637 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.07576, allocations: 1.181 MB / 481.2 MB, free: 4.453 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005225/0.07628, allocations: 260 kB / 481.5 MB, free: 4.199 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006728/0.08301, allocations: 2.986 MB / 484.4 MB, free: 1.207 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00054/0.08355, allocations: 0.623 MB / 485.1 MB, free: 0.582 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.08481, allocations: 0.9355 MB / 486 MB, free: 15.64 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.09571, allocations: 6.542 MB / 492.5 MB, free: 9.078 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.09572, allocations: 0 / 492.5 MB, free: 9.078 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09572, allocations: 0 / 492.5 MB, free: 9.078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.405e-05/0.09581, allocations: 0 / 492.5 MB, free: 9.078 MB / 394.7 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.004409/0.1002, allocations: 3.064 MB / 495.6 MB, free: 5.961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1003, allocations: 12.03 kB / 495.6 MB, free: 5.949 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002704/0.1005, allocations: 304.3 kB / 495.9 MB, free: 5.641 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001355/0.1019, allocations: 0.5494 MB / 496.5 MB, free: 5.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.1035, allocations: 1.246 MB / 497.7 MB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.1036, allocations: 275.7 kB / 498 MB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002437/0.1039, allocations: 228.3 kB / 498.2 MB, free: 3.293 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002904/0.1068, allocations: 2.679 MB / 0.4891 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.1068, allocations: 3.938 kB / 0.4891 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.107, allocations: 88 kB / 0.4892 GB, free: 444 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.668e-05/0.107, allocations: 52 kB / 0.4893 GB, free: 392 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/0.1104, allocations: 3.295 MB / 0.4925 GB, free: 13.09 MB / 410.7 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.008665/0.1191, allocations: 7.261 MB / 0.4996 GB, free: 5.672 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.1209, allocations: 1.52 MB / 0.5011 GB, free: 4.148 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008713/0.1217, allocations: 0.8585 MB / 0.5019 GB, free: 3.277 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006408/0.1281, allocations: 4.281 MB / 0.5061 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1282, allocations: 51.8 kB / 0.5061 GB, free: 14.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=128): time 3.537e-06/0.1282, allocations: 4 kB / 0.5061 GB, free: 14.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=181): time 0.01657/0.1447, allocations: 8.112 MB / 0.5141 GB, free: 6.738 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.1448, allocations: 95.11 kB / 0.5142 GB, free: 6.629 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.146, allocations: 1.416 MB / 0.5155 GB, free: 5.195 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.962e-05/0.1461, allocations: 53.7 kB / 0.5156 GB, free: 5.137 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000458/0.1465, allocations: 1.077 MB / 0.5166 GB, free: 4.047 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003592/0.1469, allocations: 0.6546 MB / 0.5173 GB, free: 3.383 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004369/0.1473, allocations: 477.1 kB / 0.5177 GB, free: 2.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.945e-05/0.1474, allocations: 301.1 kB / 0.518 GB, free: 2.613 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009295/0.1483, allocations: 0.821 MB / 0.5188 GB, free: 1.789 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.1496, allocations: 1.661 MB / 0.5205 GB, free: 15.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/0.152, allocations: 2.606 MB / 0.523 GB, free: 12.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.152, allocations: 12 kB / 0.523 GB, free: 12.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003951/0.1559, allocations: 3.062 MB / 0.526 GB, free: 9.664 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.156, allocations: 20 kB / 0.526 GB, free: 9.645 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.156, allocations: 27.94 kB / 0.526 GB, free: 9.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.1575, allocations: 0.5107 MB / 0.5265 GB, free: 9.094 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/0.1593, allocations: 0.7958 MB / 0.5273 GB, free: 8.297 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005256/0.1646, allocations: 7.603 MB / 0.5347 GB, free: 184 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.1657, allocations: 99.88 kB / 0.5348 GB, free: 84 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/0.1659, allocations: 136 kB / 0.535 GB, free: 15.95 MB / 458.7 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.0007046/0.1666, allocations: 456.8 kB / 0.5354 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.1668, allocations: 182.9 kB / 0.5356 GB, free: 15.31 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003724/0.1706, allocations: 2.57 MB / 0.5381 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.1706, allocations: 20 kB / 0.5381 GB, free: 12.69 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1706, allocations: 0 / 0.5381 GB, free: 12.69 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.1706, allocations: 7.969 kB / 0.5381 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005924/0.1765, allocations: 4.485 MB / 0.5425 GB, free: 7.969 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.1765, allocations: 12 kB / 0.5425 GB, free: 7.957 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000872/0.1774, allocations: 415.4 kB / 0.5429 GB, free: 7.551 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.179, allocations: 0.5432 MB / 0.5434 GB, free: 6.988 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.1791, allocations: 83.95 kB / 0.5435 GB, free: 6.906 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004759/0.1838, allocations: 7.368 MB / 0.5507 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/0.1838, allocations: 23.88 kB / 0.5507 GB, free: 14.99 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004289/0.1881, allocations: 3.443 MB / 0.5541 GB, free: 11.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003789/0.1885, allocations: 182.7 kB / 0.5543 GB, free: 11.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.1887, allocations: 52 kB / 0.5543 GB, free: 11.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005414/0.1892, allocations: 47.98 kB / 0.5544 GB, free: 11.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/0.1894, allocations: 200.6 kB / 0.5546 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.1895, allocations: 95.97 kB / 0.5546 GB, free: 10.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008301/0.1904, allocations: 0.9006 MB / 0.5555 GB, free: 9.898 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1904, allocations: 0 / 0.5555 GB, free: 9.898 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002836/0.1932, allocations: 1.212 MB / 0.5567 GB, free: 8.684 MB / 474.7 MB 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.007203/0.2004, allocations: 5.255 MB / 0.5618 GB, free: 3.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00434/0.2047, allocations: 2.374 MB / 0.5642 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.2048, allocations: 4.062 kB / 0.5642 GB, free: 0.832 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.2063, allocations: 1.36 MB / 0.5655 GB, free: 15.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.2079, allocations: 352.5 kB / 0.5658 GB, free: 15.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1582/0.3661, allocations: 16.85 MB / 0.5823 GB, free: 146.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008839/0.367, allocations: 0.8608 MB / 0.5831 GB, free: 145.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00132/0.3683, allocations: 466.5 kB / 0.5836 GB, free: 145.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009826/0.3693, allocations: 0.9651 MB / 0.5845 GB, free: 145.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.703e-06/0.3693, allocations: 1.219 kB / 0.5845 GB, free: 145.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08792/0.4572, allocations: 60.37 MB / 0.6435 GB, free: 105.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.808/10.27, allocations: 21.84 kB / 0.6435 GB, free: 105.9 MB / 490.7 MB " [Timeout remaining time 649] (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: 12.242907272651792] Failed to read output from testmodel.py, exit status != 0: 10.52733885217458 10.390222365 10.293036088 Calling exit ...