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.00152/0.00152, allocations: 92.42 kB / 19.7 MB, free: 2.137 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.001428/0.001428, allocations: 212.5 kB / 22.99 MB, free: 4.953 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.435/1.435, 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.15/0.15, allocations: 23.89 MB / 337.1 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: 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.002056/0.002056, allocations: 71.88 kB / 472.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.339, allocations: 59.85 MB / 0.5198 GB, free: 9.734 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.07771/0.4167, allocations: 29.79 MB / 0.5488 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03275/0.4495, allocations: 21.97 MB / 0.5703 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002101/0.4516, allocations: 31.75 kB / 0.5703 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.4537, allocations: 0.5504 MB / 0.5709 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006894/0.4606, allocations: 1.854 MB / 0.5727 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01061/0.4712, allocations: 3.476 MB / 0.5761 GB, free: 148 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004699/0.4759, allocations: 2.699 MB / 0.5787 GB, free: 13.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002625/0.4785, allocations: 1.438 MB / 0.5801 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.4809, allocations: 1.286 MB / 0.5814 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.4834, allocations: 1.432 MB / 0.5828 GB, free: 9.219 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007376/0.4842, allocations: 264 kB / 0.583 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007477/0.4916, allocations: 2.633 MB / 0.5856 GB, free: 6.324 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009686/0.4926, allocations: 0.6076 MB / 0.5862 GB, free: 5.715 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.4943, allocations: 1.074 MB / 0.5872 GB, free: 4.637 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.5069, allocations: 5.696 MB / 0.5928 GB, free: 14.92 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.5069, allocations: 7.938 kB / 0.5928 GB, free: 14.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5069, allocations: 0 / 0.5928 GB, free: 14.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.789e-05/0.507, allocations: 0 / 0.5928 GB, free: 14.91 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.006949/0.5139, allocations: 2.948 MB / 0.5957 GB, free: 11.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.514, allocations: 12.03 kB / 0.5957 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002164/0.5161, allocations: 0.5181 MB / 0.5962 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002602/0.5187, allocations: 1.223 MB / 0.5974 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002665/0.519, allocations: 275.4 kB / 0.5977 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004428/0.5195, allocations: 216 kB / 0.5979 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004968/0.5244, allocations: 2.741 MB / 0.6005 GB, free: 6.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.346e-05/0.5245, allocations: 11.92 kB / 0.6006 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.5247, allocations: 88 kB / 0.6006 GB, free: 6.652 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/0.5247, allocations: 52 kB / 0.6007 GB, free: 6.602 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00579/0.5305, allocations: 3.16 MB / 0.6038 GB, free: 3.438 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.01584/0.5464, allocations: 7.737 MB / 0.6113 GB, free: 11.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.5492, allocations: 1.463 MB / 0.6128 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/0.5506, allocations: 0.8263 MB / 0.6136 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0104/0.561, allocations: 4.334 MB / 0.6178 GB, free: 4.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/0.561, allocations: 51.55 kB / 0.6178 GB, free: 4.781 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00101/0.5621, allocations: 222.8 kB / 0.6181 GB, free: 4.562 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 4.017e-06/0.5621, allocations: 3.938 kB / 0.6181 GB, free: 4.559 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.03586/0.5979, allocations: 9.314 MB / 0.6272 GB, free: 11.19 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.812e-05/0.598, allocations: 124.1 kB / 0.6273 GB, free: 11.04 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.5998, allocations: 1.312 MB / 0.6286 GB, free: 9.719 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003013/0.6001, allocations: 57.64 kB / 0.6286 GB, free: 9.656 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009028/0.601, allocations: 1.092 MB / 0.6297 GB, free: 8.551 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007039/0.6017, allocations: 0.585 MB / 0.6302 GB, free: 7.961 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007458/0.6025, allocations: 468.6 kB / 0.6307 GB, free: 7.496 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.6026, allocations: 309.1 kB / 0.631 GB, free: 7.191 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.6042, allocations: 0.8519 MB / 0.6318 GB, free: 6.336 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00244/0.6067, allocations: 1.716 MB / 0.6335 GB, free: 4.215 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004281/0.6109, allocations: 2.705 MB / 0.6361 GB, free: 1.109 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.792e-05/0.611, allocations: 8 kB / 0.6361 GB, free: 1.102 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.0092/0.6202, allocations: 3.468 MB / 0.6395 GB, free: 13.61 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/0.6202, allocations: 22.81 kB / 0.6396 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.693e-05/0.6203, allocations: 28 kB / 0.6396 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005351/0.6256, allocations: 1.17 MB / 0.6407 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002007/0.6276, allocations: 0.5109 MB / 0.6412 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.6385, allocations: 7.188 MB / 0.6482 GB, free: 4.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.6404, allocations: 107.9 kB / 0.6483 GB, free: 4.242 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003446/0.6407, allocations: 140 kB / 0.6485 GB, free: 4.105 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.000935/0.6416, allocations: 452.9 kB / 0.6489 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004273/0.6421, allocations: 166.9 kB / 0.6491 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008157/0.6502, allocations: 2.822 MB / 0.6518 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/0.6502, allocations: 19.94 kB / 0.6518 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.6503, allocations: 7.938 kB / 0.6519 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.948e-05/0.6503, allocations: 7.969 kB / 0.6519 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.6619, allocations: 4.355 MB / 0.6561 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.6619, allocations: 4.078 kB / 0.6561 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.663, allocations: 263.6 kB / 0.6564 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004784/0.6678, allocations: 1.032 MB / 0.6574 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003205/0.6681, allocations: 63.95 kB / 0.6574 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009017/0.6772, allocations: 6.489 MB / 0.6638 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.6772, allocations: 4 kB / 0.6638 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008904/0.6861, allocations: 3.65 MB / 0.6673 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.6865, allocations: 135 kB / 0.6675 GB, free: 156 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002665/0.6868, allocations: 43.94 kB / 0.6675 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009405/0.6877, allocations: 43.98 kB / 0.6676 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.6881, allocations: 153 kB / 0.6677 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001775/0.6883, allocations: 71.95 kB / 0.6678 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00115/0.6894, allocations: 0.8228 MB / 0.6686 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.6894, allocations: 0 / 0.6686 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003947/0.6934, allocations: 1.111 MB / 0.6697 GB, free: 13.91 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.002487/0.6959, allocations: 1.163 MB / 0.6708 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005831/0.7017, allocations: 2.583 MB / 0.6733 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/0.7017, allocations: 0 / 0.6733 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002877/0.7046, allocations: 1.316 MB / 0.6746 GB, free: 8.754 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.7062, allocations: 276.9 kB / 0.6749 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007338/0.7136, allocations: 3.737 MB / 0.6785 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009681/0.7145, allocations: 0.815 MB / 0.6793 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008396/0.7154, allocations: 287.2 kB / 0.6796 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of SimCode: time 1.022e-06/0.7154, allocations: 3.938 kB / 0.6796 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of Templates: time 0.3057/1.021, allocations: 73.25 MB / 0.7511 GB, free: 170.9 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 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 12.043285433959682] Failed to read output from testmodel.py, exit status != 0: 1.0313898669555783 1.042430246 0.5328111489999999 Calling exit ...