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.001775/0.001775, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002156/0.002156, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.481/1.481, allocations: 230.6 MB / 256 MB, free: 7.797 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.1431/0.1431, allocations: 23.88 MB / 336.3 MB, free: 10.95 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.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: 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.002104/0.002104, allocations: 75.88 kB / 471.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3324, allocations: 59.86 MB / 0.5185 GB, free: 9.566 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.08001/0.4124, allocations: 29.85 MB / 0.5477 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0336/0.446, allocations: 21.98 MB / 0.5692 GB, free: 6.035 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002106/0.4481, allocations: 31.75 kB / 0.5692 GB, free: 6.004 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.45, allocations: 0.5581 MB / 0.5697 GB, free: 5.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006314/0.4564, allocations: 1.843 MB / 0.5715 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0113/0.4677, allocations: 3.48 MB / 0.5749 GB, free: 108 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004859/0.4725, allocations: 2.699 MB / 0.5776 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.4746, allocations: 1.403 MB / 0.5789 GB, free: 11.94 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001909/0.4765, allocations: 1.286 MB / 0.5802 GB, free: 10.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002503/0.479, allocations: 1.276 MB / 0.5814 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005351/0.4796, allocations: 260 kB / 0.5817 GB, free: 9.117 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007484/0.4871, allocations: 2.566 MB / 0.5842 GB, free: 6.547 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008318/0.4879, allocations: 0.6037 MB / 0.5848 GB, free: 5.941 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.4894, allocations: 1.078 MB / 0.5858 GB, free: 4.859 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.5025, allocations: 5.7 MB / 0.5914 GB, free: 15.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.5025, allocations: 0 / 0.5914 GB, free: 15.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5025, allocations: 8 kB / 0.5914 GB, free: 15.13 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.709e-05/0.5025, allocations: 0 / 0.5914 GB, free: 15.13 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.006264/0.5088, allocations: 2.952 MB / 0.5943 GB, free: 12.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5088, allocations: 8.031 kB / 0.5943 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004195/0.5093, allocations: 300.1 kB / 0.5946 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/0.5114, allocations: 0.5142 MB / 0.5951 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002838/0.5142, allocations: 1.219 MB / 0.5963 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002812/0.5145, allocations: 275.2 kB / 0.5965 GB, free: 9.742 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003922/0.5149, allocations: 220 kB / 0.5968 GB, free: 9.527 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005025/0.5199, allocations: 2.741 MB / 0.5994 GB, free: 6.668 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.964e-05/0.52, allocations: 7.938 kB / 0.5994 GB, free: 6.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002524/0.5202, allocations: 88 kB / 0.5995 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.096e-05/0.5203, allocations: 52 kB / 0.5996 GB, free: 6.523 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005721/0.526, allocations: 3.156 MB / 0.6027 GB, free: 3.363 MB / 446.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.01533/0.5414, allocations: 8.001 MB / 0.6105 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/0.5441, allocations: 1.459 MB / 0.6119 GB, free: 9.699 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.5456, allocations: 0.8224 MB / 0.6127 GB, free: 8.867 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.5558, allocations: 4.362 MB / 0.617 GB, free: 4.473 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.321e-05/0.5559, allocations: 47.56 kB / 0.617 GB, free: 4.418 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001136/0.557, allocations: 234.7 kB / 0.6172 GB, free: 4.188 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 7.324e-06/0.557, allocations: 3.984 kB / 0.6172 GB, free: 4.184 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03697/0.594, allocations: 9.314 MB / 0.6263 GB, free: 10.81 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.5941, allocations: 120.1 kB / 0.6264 GB, free: 10.67 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002003/0.5961, allocations: 1.407 MB / 0.6278 GB, free: 9.242 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001945/0.5963, allocations: 61.7 kB / 0.6279 GB, free: 9.176 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008631/0.5972, allocations: 1.081 MB / 0.6289 GB, free: 8.082 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005736/0.5977, allocations: 0.5927 MB / 0.6295 GB, free: 7.484 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007073/0.5984, allocations: 472.6 kB / 0.63 GB, free: 7.016 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.5986, allocations: 305.1 kB / 0.6302 GB, free: 6.715 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/0.6001, allocations: 0.8559 MB / 0.6311 GB, free: 5.855 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002312/0.6024, allocations: 1.712 MB / 0.6328 GB, free: 3.738 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004232/0.6067, allocations: 2.705 MB / 0.6354 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/0.6067, allocations: 8 kB / 0.6354 GB, free: 0.625 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008961/0.6157, allocations: 3.476 MB / 0.6388 GB, free: 13.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.6157, allocations: 19.94 kB / 0.6388 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.11e-05/0.6157, allocations: 28 kB / 0.6388 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00537/0.6211, allocations: 1.166 MB / 0.64 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.623, allocations: 0.5109 MB / 0.6405 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.6337, allocations: 7.256 MB / 0.6476 GB, free: 3.762 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/0.6356, allocations: 108 kB / 0.6477 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/0.6359, allocations: 147.9 kB / 0.6478 GB, free: 3.512 MB / 494.1 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.0008928/0.6368, allocations: 448.9 kB / 0.6482 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004081/0.6372, allocations: 170.9 kB / 0.6484 GB, free: 2.895 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008188/0.6454, allocations: 2.835 MB / 0.6512 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-05/0.6454, allocations: 20 kB / 0.6512 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/0.6454, allocations: 0 / 0.6512 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.499e-05/0.6455, allocations: 11.97 kB / 0.6512 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.6573, allocations: 4.571 MB / 0.6557 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.6573, allocations: 4.25 kB / 0.6557 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.6584, allocations: 259.7 kB / 0.6559 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004962/0.6634, allocations: 1.041 MB / 0.6569 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/0.6636, allocations: 59.97 kB / 0.657 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009011/0.6726, allocations: 6.561 MB / 0.6634 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.6726, allocations: 4 kB / 0.6634 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008965/0.6816, allocations: 3.662 MB / 0.667 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.682, allocations: 154.8 kB / 0.6671 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.6822, allocations: 36 kB / 0.6672 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.6833, allocations: 43.92 kB / 0.6672 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/0.6836, allocations: 153 kB / 0.6673 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/0.6838, allocations: 71.95 kB / 0.6674 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001207/0.685, allocations: 0.8882 MB / 0.6683 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.685, allocations: 288 / 0.6683 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003339/0.6883, allocations: 1.111 MB / 0.6694 GB, free: 12.87 MB / 0.5137 GB 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.01213/0.7005, allocations: 5.273 MB / 0.6745 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005622/0.7061, allocations: 2.582 MB / 0.677 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.7061, allocations: 0 / 0.677 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002741/0.7088, allocations: 1.324 MB / 0.6783 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.7106, allocations: 277 kB / 0.6786 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03419/0.7448, allocations: 17.22 MB / 0.6954 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.7458, allocations: 0.8269 MB / 0.6962 GB, free: 0 / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001491/0.7473, allocations: 389.1 kB / 0.6966 GB, free: 15.63 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/0.7486, allocations: 0.878 MB / 0.6975 GB, free: 14.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/0.7486, allocations: 0 / 0.6975 GB, free: 14.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4231/1.172, allocations: 58.77 MB / 0.7548 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/16.86, allocations: 5.594 kB / 0.7548 GB, free: 170.7 MB / 0.5606 GB " [Timeout remaining time 643] (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: 19.823210067581385] Failed to read output from testmodel.py, exit status != 0: 17.01916227908805 17.037318265 16.531189142 Calling exit ...