Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.0009104/0.0009104, 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.001193/0.001193, 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.9172/0.9172, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.09384/0.09384, allocations: 17.37 MB / 276.6 MB, free: 11.84 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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 411.4 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.696e-05/2.921e-05, allocations: 3.469 kB / 411.4 MB, free: 13.21 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.03177/0.0318, allocations: 30.11 MB / 441.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02196/0.05376, allocations: 21.96 MB / 463.5 MB, free: 6.285 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.05588, allocations: 35.75 kB / 463.6 MB, free: 6.25 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.05735, allocations: 0.5618 MB / 464.1 MB, free: 5.684 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005006/0.06236, allocations: 1.912 MB / 466 MB, free: 3.758 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008781/0.07114, allocations: 3.575 MB / 469.6 MB, free: 164 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004103/0.07524, allocations: 2.799 MB / 472.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001875/0.07712, allocations: 1.411 MB / 473.8 MB, free: 11.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002556/0.07967, allocations: 1.821 MB / 475.6 MB, free: 10.06 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001601/0.08127, allocations: 1.126 MB / 476.8 MB, free: 8.934 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004093/0.08168, allocations: 264 kB / 477 MB, free: 8.676 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006869/0.08855, allocations: 2.577 MB / 479.6 MB, free: 6.094 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006077/0.08916, allocations: 0.6113 MB / 480.2 MB, free: 5.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.09036, allocations: 0.9277 MB / 481.1 MB, free: 4.551 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.1015, allocations: 6.013 MB / 487.1 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.1015, allocations: 0 / 487.1 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1015, allocations: 4 kB / 487.1 MB, free: 14.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001097/0.1016, allocations: 0 / 487.1 MB, free: 14.51 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.004911/0.1065, allocations: 2.925 MB / 490.1 MB, free: 11.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.1065, allocations: 15.97 kB / 490.1 MB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002901/0.1068, allocations: 300.1 kB / 490.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.1081, allocations: 0.5181 MB / 490.9 MB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001648/0.1097, allocations: 1.222 MB / 492.1 MB, free: 9.438 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.1099, allocations: 271.7 kB / 492.4 MB, free: 9.145 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002429/0.1102, allocations: 216.4 kB / 492.6 MB, free: 8.934 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002979/0.1131, allocations: 2.741 MB / 495.3 MB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/0.1132, allocations: 4 kB / 495.3 MB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.1133, allocations: 88 kB / 495.4 MB, free: 5.984 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.1133, allocations: 52 kB / 495.5 MB, free: 5.934 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003385/0.1167, allocations: 3.156 MB / 498.6 MB, free: 2.773 MB / 394.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.009549/0.1263, allocations: 8.005 MB / 0.4948 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.1279, allocations: 1.451 MB / 0.4962 GB, free: 9.109 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008599/0.1288, allocations: 0.834 MB / 0.497 GB, free: 8.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006453/0.1353, allocations: 4.36 MB / 0.5013 GB, free: 3.879 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.1353, allocations: 47.56 kB / 0.5013 GB, free: 3.824 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008051/0.1361, allocations: 242.6 kB / 0.5015 GB, free: 3.586 MB / 410.7 MB Notification: Performance of pre-optimization done (n=113): time 8.005e-06/0.1361, allocations: 0 / 0.5015 GB, free: 3.586 MB / 410.7 MB Notification: Performance of matching and sorting (n=161): time 0.01926/0.1554, allocations: 9.311 MB / 0.5106 GB, free: 10.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.1554, allocations: 120.1 kB / 0.5107 GB, free: 10.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.1567, allocations: 1.411 MB / 0.5121 GB, free: 8.641 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.1568, allocations: 53.7 kB / 0.5122 GB, free: 8.582 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006429/0.1575, allocations: 1.077 MB / 0.5132 GB, free: 7.492 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.1578, allocations: 0.581 MB / 0.5138 GB, free: 6.906 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004661/0.1583, allocations: 472.6 kB / 0.5142 GB, free: 6.438 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.706e-05/0.1584, allocations: 305.1 kB / 0.5145 GB, free: 6.137 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009483/0.1593, allocations: 0.8481 MB / 0.5154 GB, free: 5.285 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.1607, allocations: 1.724 MB / 0.517 GB, free: 3.156 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002562/0.1632, allocations: 2.693 MB / 0.5197 GB, free: 68 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/0.1632, allocations: 12 kB / 0.5197 GB, free: 56 kB / 426.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00508/0.1683, allocations: 3.488 MB / 0.5231 GB, free: 12.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.1684, allocations: 16 kB / 0.5231 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-05/0.1684, allocations: 28 kB / 0.5231 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002794/0.1712, allocations: 1.159 MB / 0.5243 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.1722, allocations: 0.5108 MB / 0.5248 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006861/0.1791, allocations: 7.264 MB / 0.5319 GB, free: 3.184 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.1806, allocations: 107.9 kB / 0.532 GB, free: 3.078 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/0.1808, allocations: 144.1 kB / 0.5321 GB, free: 2.938 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008812/0.1817, allocations: 464.7 kB / 0.5325 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003494/0.182, allocations: 162.9 kB / 0.5327 GB, free: 2.312 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004877/0.1869, allocations: 2.832 MB / 0.5355 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.1869, allocations: 16 kB / 0.5355 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.1869, allocations: 4 kB / 0.5355 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.1869, allocations: 7.969 kB / 0.5355 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007294/0.1942, allocations: 4.58 MB / 0.54 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1942, allocations: 4.25 kB / 0.54 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006356/0.1949, allocations: 255.7 kB / 0.5402 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00281/0.1977, allocations: 1.038 MB / 0.5412 GB, free: 9.449 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.1978, allocations: 59.97 kB / 0.5413 GB, free: 9.391 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005837/0.2036, allocations: 6.541 MB / 0.5477 GB, free: 2.484 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.2037, allocations: 11.88 kB / 0.5477 GB, free: 2.473 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005608/0.2093, allocations: 3.662 MB / 0.5513 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004172/0.2097, allocations: 150.8 kB / 0.5514 GB, free: 14.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.2098, allocations: 36 kB / 0.5514 GB, free: 14.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005492/0.2104, allocations: 47.92 kB / 0.5515 GB, free: 14.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/0.2107, allocations: 149 kB / 0.5516 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.921e-05/0.2108, allocations: 75.95 kB / 0.5517 GB, free: 14.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008788/0.2117, allocations: 0.8882 MB / 0.5526 GB, free: 13.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2117, allocations: 0 / 0.5526 GB, free: 13.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002652/0.2143, allocations: 1.114 MB / 0.5537 GB, free: 12.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007128/0.2214, allocations: 5.297 MB / 0.5588 GB, free: 6.926 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003588/0.225, allocations: 2.582 MB / 0.5613 GB, free: 4.309 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.225, allocations: 0 / 0.5613 GB, free: 4.309 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00175/0.2268, allocations: 1.308 MB / 0.5626 GB, free: 2.957 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.228, allocations: 284 kB / 0.5629 GB, free: 2.684 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/0.2502, allocations: 17.12 MB / 0.5796 GB, free: 400 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1619/0.4121, allocations: 0.8147 MB / 0.5804 GB, free: 150 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001186/0.4133, allocations: 390.1 kB / 0.5808 GB, free: 150 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009519/0.4142, allocations: 0.8846 MB / 0.5816 GB, free: 150 MB / 490.7 MB Notification: Performance of SimCode: time 1.893e-06/0.4142, allocations: 2.312 kB / 0.5816 GB, free: 150 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07909/0.4933, allocations: 58.96 MB / 0.6392 GB, free: 112.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.823/10.32, allocations: 0 / 0.6392 GB, free: 112.2 MB / 490.7 MB " [Timeout remaining time 649] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction_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_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.455689125694335] Failed to read output from testmodel.py, exit status != 0: 10.58792614005506 10.444720910000001 10.340913515 Calling exit ...