Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.00139/0.00139, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001722/0.001722, allocations: 214.8 kB / 22.24 MB, free: 5.102 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1377/0.1377, allocations: 23.93 MB / 336.4 MB, free: 10.92 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell") [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.002426/0.002426, allocations: 67.91 kB / 471.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3427, allocations: 59.87 MB / 0.5191 GB, free: 9.715 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.07507/0.4178, allocations: 29.82 MB / 0.5482 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03689/0.4547, allocations: 25.31 MB / 0.5729 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.4567, allocations: 31.75 kB / 0.573 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.4585, allocations: 0.6007 MB / 0.5735 GB, free: 2.012 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007739/0.4663, allocations: 2.165 MB / 0.5757 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01223/0.4785, allocations: 3.926 MB / 0.5795 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00469/0.4832, allocations: 2.852 MB / 0.5823 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002007/0.4852, allocations: 1.369 MB / 0.5836 GB, free: 7.602 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001688/0.4869, allocations: 1.344 MB / 0.5849 GB, free: 6.254 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002239/0.4891, allocations: 1.499 MB / 0.5864 GB, free: 4.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004065/0.4895, allocations: 260 kB / 0.5866 GB, free: 4.496 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008251/0.4978, allocations: 3.034 MB / 0.5896 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007922/0.4986, allocations: 0.6075 MB / 0.5902 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001447/0.5, allocations: 1.097 MB / 0.5913 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.513, allocations: 6.186 MB / 0.5973 GB, free: 9.535 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.513, allocations: 3.938 kB / 0.5973 GB, free: 9.531 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.513, allocations: 0 / 0.5973 GB, free: 9.531 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.306e-05/0.5131, allocations: 0 / 0.5973 GB, free: 9.531 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.006048/0.5191, allocations: 3.084 MB / 0.6003 GB, free: 6.395 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.5192, allocations: 8.031 kB / 0.6003 GB, free: 6.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002407/0.5216, allocations: 0.5609 MB / 0.6009 GB, free: 5.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/0.5241, allocations: 1.25 MB / 0.6021 GB, free: 4.535 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002643/0.5243, allocations: 275.5 kB / 0.6024 GB, free: 4.238 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004073/0.5247, allocations: 227.9 kB / 0.6026 GB, free: 4.016 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004693/0.5294, allocations: 2.675 MB / 0.6052 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.713e-05/0.5295, allocations: 4 kB / 0.6052 GB, free: 1.246 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002313/0.5297, allocations: 88 kB / 0.6053 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.152e-05/0.5297, allocations: 56 kB / 0.6053 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00526/0.535, allocations: 3.291 MB / 0.6085 GB, free: 13.81 MB / 462.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.01417/0.5492, allocations: 7.003 MB / 0.6154 GB, free: 6.668 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002719/0.5519, allocations: 1.531 MB / 0.6169 GB, free: 5.133 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/0.5533, allocations: 0.8508 MB / 0.6177 GB, free: 4.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0104/0.5637, allocations: 4.269 MB / 0.6219 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.5638, allocations: 47.88 kB / 0.6219 GB, free: 15.91 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.046e-06/0.5638, allocations: 0 / 0.6219 GB, free: 15.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03268/0.5964, allocations: 8.107 MB / 0.6298 GB, free: 7.758 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/0.5965, allocations: 99.11 kB / 0.6299 GB, free: 7.641 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.5982, allocations: 1.321 MB / 0.6312 GB, free: 6.309 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.5984, allocations: 53.7 kB / 0.6313 GB, free: 6.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008376/0.5992, allocations: 1.085 MB / 0.6323 GB, free: 5.152 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006036/0.5998, allocations: 0.6546 MB / 0.633 GB, free: 4.492 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007607/0.6006, allocations: 485 kB / 0.6334 GB, free: 4.012 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.6007, allocations: 305.1 kB / 0.6337 GB, free: 3.711 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.6022, allocations: 0.8132 MB / 0.6345 GB, free: 2.895 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/0.6045, allocations: 1.661 MB / 0.6361 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003965/0.6085, allocations: 2.622 MB / 0.6387 GB, free: 13.85 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.6085, allocations: 8 kB / 0.6387 GB, free: 13.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007681/0.6162, allocations: 3.035 MB / 0.6417 GB, free: 10.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.363e-05/0.6163, allocations: 27.91 kB / 0.6417 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/0.6163, allocations: 32 kB / 0.6417 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003651/0.6199, allocations: 0.5182 MB / 0.6422 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004086/0.624, allocations: 0.7958 MB / 0.643 GB, free: 9.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009755/0.6338, allocations: 7.512 MB / 0.6504 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/0.6357, allocations: 100.1 kB / 0.6504 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002953/0.636, allocations: 148 kB / 0.6506 GB, free: 1.184 MB / 494.1 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.0009452/0.637, allocations: 448.9 kB / 0.651 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003895/0.6374, allocations: 166.9 kB / 0.6512 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007125/0.6445, allocations: 2.558 MB / 0.6537 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/0.6445, allocations: 23.94 kB / 0.6537 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.6445, allocations: 3.938 kB / 0.6537 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.6445, allocations: 7.969 kB / 0.6537 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.6546, allocations: 4.245 MB / 0.6579 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.041e-05/0.6546, allocations: 16.25 kB / 0.6579 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001765/0.6564, allocations: 423.4 kB / 0.6583 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003668/0.66, allocations: 0.5547 MB / 0.6588 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000193/0.6602, allocations: 87.84 kB / 0.6589 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008591/0.6688, allocations: 7.288 MB / 0.666 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.446e-05/0.6688, allocations: 19.94 kB / 0.666 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007447/0.6763, allocations: 3.446 MB / 0.6694 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.6767, allocations: 166.8 kB / 0.6696 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.677, allocations: 59.98 kB / 0.6696 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.678, allocations: 44 kB / 0.6697 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/0.6783, allocations: 208.6 kB / 0.6699 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/0.6785, allocations: 91.97 kB / 0.6699 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001093/0.6796, allocations: 0.8274 MB / 0.6708 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6796, allocations: 0 / 0.6708 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00377/0.6834, allocations: 1.208 MB / 0.6719 GB, free: 10.39 MB / 0.5137 GB 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.002857/0.6862, allocations: 1.339 MB / 0.6732 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005165/0.6914, allocations: 2.373 MB / 0.6756 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/0.6914, allocations: 0 / 0.6756 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002233/0.6936, allocations: 1.361 MB / 0.6769 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.6956, allocations: 338.8 kB / 0.6772 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006652/0.7022, allocations: 4.067 MB / 0.6812 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.7033, allocations: 0.8577 MB / 0.682 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001649/0.7049, allocations: 457.8 kB / 0.6825 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007526/0.7057, allocations: 291.2 kB / 0.6827 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of SimCode: time 2.685e-06/0.7057, allocations: 3.938 kB / 0.6827 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of Templates: time 0.073/0.7787, allocations: 44.83 MB / 0.7265 GB, free: 2.438 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & ./Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.404559109825641] Failed to read output from testmodel.py, exit status != 0: 0.7884072051383555 0.995340613 0.47949948 Calling exit ...