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.001276/0.001276, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001405/0.001405, allocations: 212.4 kB / 22.99 MB, free: 4.984 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.408/1.408, allocations: 230.6 MB / 256.8 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.1311/0.1311, allocations: 23.88 MB / 337.1 MB, free: 11 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: translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") [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.002041/0.002041, allocations: 71.89 kB / 472.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2916, allocations: 59.87 MB / 0.5198 GB, free: 9.75 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.07033/0.3619, allocations: 29.69 MB / 0.5488 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02892/0.3908, allocations: 21.98 MB / 0.5702 GB, free: 6.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.3924, allocations: 31.75 kB / 0.5702 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.394, allocations: 0.5503 MB / 0.5708 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005113/0.3991, allocations: 1.847 MB / 0.5726 GB, free: 3.785 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008785/0.4079, allocations: 3.48 MB / 0.576 GB, free: 292 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003639/0.4115, allocations: 2.703 MB / 0.5786 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.4133, allocations: 1.434 MB / 0.58 GB, free: 12.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001426/0.4147, allocations: 1.282 MB / 0.5813 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.4165, allocations: 1.444 MB / 0.5827 GB, free: 9.352 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000384/0.4169, allocations: 268 kB / 0.5829 GB, free: 9.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006229/0.4231, allocations: 2.629 MB / 0.5855 GB, free: 6.457 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006535/0.4237, allocations: 0.6037 MB / 0.5861 GB, free: 5.852 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.4249, allocations: 1.074 MB / 0.5871 GB, free: 4.773 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.4355, allocations: 5.696 MB / 0.5927 GB, free: 15.05 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4355, allocations: 3.938 kB / 0.5927 GB, free: 15.05 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4355, allocations: 0 / 0.5927 GB, free: 15.05 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.096e-05/0.4356, allocations: 0 / 0.5927 GB, free: 15.05 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.005978/0.4416, allocations: 2.952 MB / 0.5956 GB, free: 12.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.4416, allocations: 20.02 kB / 0.5956 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002196/0.4438, allocations: 0.5142 MB / 0.5961 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/0.4463, allocations: 1.223 MB / 0.5973 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002391/0.4466, allocations: 275.4 kB / 0.5976 GB, free: 9.953 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003975/0.447, allocations: 219.9 kB / 0.5978 GB, free: 9.738 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004635/0.4516, allocations: 2.733 MB / 0.6005 GB, free: 6.887 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.51e-05/0.4517, allocations: 3.938 kB / 0.6005 GB, free: 6.883 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002226/0.4519, allocations: 88 kB / 0.6005 GB, free: 6.797 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-05/0.4519, allocations: 52 kB / 0.6006 GB, free: 6.746 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005051/0.457, allocations: 3.164 MB / 0.6037 GB, free: 3.578 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.01407/0.471, allocations: 7.733 MB / 0.6112 GB, free: 11.67 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002455/0.4735, allocations: 1.455 MB / 0.6127 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.4748, allocations: 0.8341 MB / 0.6135 GB, free: 9.352 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009664/0.4844, allocations: 4.33 MB / 0.6177 GB, free: 4.988 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.896e-05/0.4845, allocations: 59.53 kB / 0.6178 GB, free: 4.922 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00103/0.4855, allocations: 222.8 kB / 0.618 GB, free: 4.703 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 3.256e-06/0.4855, allocations: 3.938 kB / 0.618 GB, free: 4.699 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03846/0.524, allocations: 9.31 MB / 0.6271 GB, free: 11.33 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.64e-05/0.5241, allocations: 128.1 kB / 0.6272 GB, free: 11.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.5257, allocations: 1.308 MB / 0.6285 GB, free: 9.863 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001786/0.5259, allocations: 53.64 kB / 0.6285 GB, free: 9.805 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007777/0.5267, allocations: 1.096 MB / 0.6296 GB, free: 8.695 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005358/0.5272, allocations: 0.5811 MB / 0.6302 GB, free: 8.109 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007031/0.5279, allocations: 476.6 kB / 0.6306 GB, free: 7.637 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.528, allocations: 305.1 kB / 0.6309 GB, free: 7.336 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.5294, allocations: 0.8598 MB / 0.6317 GB, free: 6.473 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.5316, allocations: 1.712 MB / 0.6334 GB, free: 4.355 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/0.5353, allocations: 2.705 MB / 0.636 GB, free: 1.25 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/0.5353, allocations: 8 kB / 0.6361 GB, free: 1.242 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009175/0.5445, allocations: 3.469 MB / 0.6394 GB, free: 13.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.5445, allocations: 20 kB / 0.6395 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.377e-05/0.5446, allocations: 28 kB / 0.6395 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005892/0.5505, allocations: 1.173 MB / 0.6406 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.5525, allocations: 0.507 MB / 0.6411 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.5628, allocations: 7.194 MB / 0.6482 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.5647, allocations: 103.8 kB / 0.6483 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002648/0.5649, allocations: 144 kB / 0.6484 GB, free: 4.242 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.0008526/0.5658, allocations: 448.9 kB / 0.6488 GB, free: 3.793 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003875/0.5662, allocations: 162.9 kB / 0.649 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008364/0.5745, allocations: 2.829 MB / 0.6517 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.5745, allocations: 19.94 kB / 0.6518 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.5746, allocations: 4 kB / 0.6518 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.5746, allocations: 11.97 kB / 0.6518 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.5864, allocations: 4.355 MB / 0.656 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.5864, allocations: 0 / 0.656 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.5876, allocations: 259.6 kB / 0.6563 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005244/0.5928, allocations: 1.037 MB / 0.6573 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000193/0.593, allocations: 63.95 kB / 0.6573 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008749/0.6018, allocations: 6.496 MB / 0.6637 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.6018, allocations: 4 kB / 0.6637 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008959/0.6107, allocations: 3.654 MB / 0.6673 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003916/0.6111, allocations: 135 kB / 0.6674 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.6114, allocations: 39.94 kB / 0.6674 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.6124, allocations: 39.98 kB / 0.6675 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/0.6128, allocations: 153 kB / 0.6676 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/0.6129, allocations: 72.02 kB / 0.6677 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001027/0.614, allocations: 0.8227 MB / 0.6685 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.614, allocations: 4 kB / 0.6685 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003311/0.6173, allocations: 1.114 MB / 0.6696 GB, free: 14.04 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.002098/0.6194, allocations: 1.153 MB / 0.6707 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00518/0.6245, allocations: 2.579 MB / 0.6732 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.6245, allocations: 0 / 0.6732 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00255/0.6271, allocations: 1.311 MB / 0.6745 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.6286, allocations: 280.7 kB / 0.6748 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/0.635, allocations: 3.677 MB / 0.6784 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008776/0.6359, allocations: 0.8267 MB / 0.6792 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00128/0.6372, allocations: 380.7 kB / 0.6795 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.6377, allocations: 235.2 kB / 0.6798 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of SimCode: time 6.72e-07/0.6377, allocations: 0 / 0.6798 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of Templates: time 0.06786/0.7056, allocations: 44.17 MB / 0.7229 GB, free: 7.5 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile [Timeout 660] (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 & ./Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.578376179997576] Failed to read output from testmodel.py, exit status != 0: 0.7145701369881863 0.907003268 0.46867255300000005 Calling exit ...