Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001309/0.001309, allocations: 113.3 kB / 17.13 MB, free: 5.926 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.001384/0.001384, allocations: 204 kB / 20.09 MB, free: 2.977 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.485/1.485, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1493/0.1493, allocations: 23.85 MB / 333.4 MB, free: 1.207 MB / 254.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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_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.002059/0.002059, allocations: 63.44 kB / 467.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1107, allocations: 59.84 MB / 0.5146 GB, free: 12.45 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.ElectrochemicalCell): time 0.04597/0.1567, allocations: 30.82 MB / 0.5447 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03652/0.1932, allocations: 28.84 MB / 0.5729 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.195, allocations: 35.75 kB / 0.5729 GB, free: 0.668 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001999/0.197, allocations: 0.6514 MB / 0.5736 GB, free: 12 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007013/0.204, allocations: 2.204 MB / 0.5757 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.2147, allocations: 3.883 MB / 0.5795 GB, free: 9.887 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004887/0.2196, allocations: 2.852 MB / 0.5823 GB, free: 7.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002232/0.2218, allocations: 1.376 MB / 0.5836 GB, free: 5.594 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.2245, allocations: 1.348 MB / 0.585 GB, free: 4.242 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003235/0.2277, allocations: 1.506 MB / 0.5864 GB, free: 2.73 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006017/0.2283, allocations: 260 kB / 0.5867 GB, free: 2.477 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.267/0.4953, allocations: 3.143 MB / 0.5897 GB, free: 25.81 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.4963, allocations: 0.609 MB / 0.5903 GB, free: 25.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001945/0.4983, allocations: 1.302 MB / 0.5916 GB, free: 25.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01593/0.5142, allocations: 6.213 MB / 0.5977 GB, free: 25.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.5142, allocations: 0.7188 kB / 0.5977 GB, free: 25.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.5142, allocations: 1.266 kB / 0.5977 GB, free: 25.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001315/0.5143, allocations: 0.8125 kB / 0.5977 GB, free: 25.27 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.009403/0.5237, allocations: 3.163 MB / 0.6008 GB, free: 23.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.5238, allocations: 10.48 kB / 0.6008 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002774/0.5266, allocations: 0.5528 MB / 0.6013 GB, free: 23.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002689/0.5293, allocations: 1.315 MB / 0.6026 GB, free: 23.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.5295, allocations: 227.1 kB / 0.6028 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004387/0.5299, allocations: 220.6 kB / 0.603 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004835/0.5347, allocations: 2.675 MB / 0.6056 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.598e-05/0.5348, allocations: 4.438 kB / 0.6056 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.535, allocations: 90 kB / 0.6057 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.953e-05/0.5351, allocations: 54.03 kB / 0.6058 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005553/0.5406, allocations: 3.305 MB / 0.609 GB, free: 22.92 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.01301/0.5536, allocations: 8.689 MB / 0.6175 GB, free: 18.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.5559, allocations: 1.903 MB / 0.6194 GB, free: 17.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/0.557, allocations: 0.8518 MB / 0.6202 GB, free: 17.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.5672, allocations: 7.899 MB / 0.6279 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.5672, allocations: 56.53 kB / 0.628 GB, free: 10.76 MB / 446.1 MB Notification: Performance of pre-optimization done (n=128): time 2.935e-06/0.5672, allocations: 0 / 0.628 GB, free: 10.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=181): time 0.03127/0.5985, allocations: 8.253 MB / 0.636 GB, free: 6.547 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.5986, allocations: 97.14 kB / 0.6361 GB, free: 6.449 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.6003, allocations: 1.364 MB / 0.6374 GB, free: 5.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002901/0.6006, allocations: 57.7 kB / 0.6375 GB, free: 5.461 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004925/0.6011, allocations: 1.075 MB / 0.6385 GB, free: 4.383 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.6017, allocations: 0.6594 MB / 0.6392 GB, free: 3.734 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007493/0.6025, allocations: 487.5 kB / 0.6397 GB, free: 3.254 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.913e-05/0.6025, allocations: 303.8 kB / 0.6399 GB, free: 2.957 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.6037, allocations: 0.8132 MB / 0.6407 GB, free: 2.141 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.6053, allocations: 1.651 MB / 0.6423 GB, free: 144 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004175/0.6095, allocations: 2.611 MB / 0.6449 GB, free: 13.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.681e-05/0.6095, allocations: 8 kB / 0.6449 GB, free: 13.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007965/0.6175, allocations: 3.04 MB / 0.6479 GB, free: 10.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.215e-05/0.6176, allocations: 23.98 kB / 0.6479 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-05/0.6176, allocations: 31.94 kB / 0.6479 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003382/0.621, allocations: 0.519 MB / 0.6484 GB, free: 9.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004144/0.6251, allocations: 0.7983 MB / 0.6492 GB, free: 9.129 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.6352, allocations: 8.04 MB / 0.6571 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002406/0.6376, allocations: 99.09 kB / 0.6572 GB, free: 484 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005793/0.6381, allocations: 141.8 kB / 0.6573 GB, free: 344 kB / 462.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.001355/0.6395, allocations: 464.5 kB / 0.6577 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006966/0.6402, allocations: 174.9 kB / 0.6579 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007713/0.6479, allocations: 2.576 MB / 0.6604 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.546e-05/0.6479, allocations: 16 kB / 0.6604 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.6479, allocations: 4 kB / 0.6604 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-05/0.648, allocations: 7.969 kB / 0.6604 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.6596, allocations: 4.756 MB / 0.6651 GB, free: 8.375 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.442e-05/0.6596, allocations: 12 kB / 0.6651 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/0.6614, allocations: 418.6 kB / 0.6655 GB, free: 7.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003482/0.6649, allocations: 0.5489 MB / 0.666 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003125/0.6652, allocations: 85.34 kB / 0.6661 GB, free: 7.352 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009211/0.6744, allocations: 7.837 MB / 0.6738 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.727e-05/0.6745, allocations: 21.59 kB / 0.6738 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007893/0.6823, allocations: 3.458 MB / 0.6772 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006378/0.683, allocations: 259.8 kB / 0.6774 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004627/0.6834, allocations: 55.98 kB / 0.6775 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.6846, allocations: 50.69 kB / 0.6775 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/0.6849, allocations: 191.9 kB / 0.6777 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/0.6851, allocations: 91.97 kB / 0.6778 GB, free: 10.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.6863, allocations: 0.8928 MB / 0.6787 GB, free: 9.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6863, allocations: 0 / 0.6787 GB, free: 9.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005722/0.692, allocations: 1.212 MB / 0.6798 GB, free: 8.625 MB / 494.1 MB 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.003414/0.6955, allocations: 1.336 MB / 0.6812 GB, free: 7.531 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005394/0.7009, allocations: 2.371 MB / 0.6835 GB, free: 5.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/0.7009, allocations: 0 / 0.6835 GB, free: 5.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.7033, allocations: 1.357 MB / 0.6848 GB, free: 3.926 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002821/0.7061, allocations: 350.3 kB / 0.6851 GB, free: 3.621 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008196/0.7143, allocations: 4.101 MB / 0.6891 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/0.7163, allocations: 1.431 MB / 0.6905 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001455/0.7178, allocations: 360.4 kB / 0.6909 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of SimCode: time 1.392e-06/0.7178, allocations: 0 / 0.6909 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of Templates: time 0.1051/0.8229, allocations: 82.8 MB / 0.7717 GB, free: 11.29 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.33223888700013] Failed to read output from testmodel.py, exit status != 0: 0.831832839990966 0.847954175 0.330294234 Calling exit ...