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.001326/0.001326, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001492/0.001492, allocations: 220.5 kB / 23 MB, free: 4.914 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.43/1.43, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.1353/0.1353, allocations: 23.89 MB / 337.1 MB, free: 10.99 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.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.002137/0.002137, allocations: 67.89 kB / 472.4 MB, free: 7.043 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3292, allocations: 59.86 MB / 0.5197 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.ElectrochemicalCell): time 0.07613/0.4054, allocations: 29.94 MB / 0.549 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03686/0.4422, allocations: 25.3 MB / 0.5737 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.4444, allocations: 35.75 kB / 0.5737 GB, free: 2.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002436/0.4469, allocations: 0.5969 MB / 0.5743 GB, free: 1.988 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007306/0.4542, allocations: 2.161 MB / 0.5764 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01115/0.4653, allocations: 3.93 MB / 0.5803 GB, free: 11.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004567/0.4699, allocations: 2.852 MB / 0.583 GB, free: 8.996 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002052/0.472, allocations: 1.334 MB / 0.5843 GB, free: 7.613 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002078/0.474, allocations: 1.352 MB / 0.5857 GB, free: 6.258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00241/0.4764, allocations: 1.331 MB / 0.587 GB, free: 4.922 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000605/0.477, allocations: 260 kB / 0.5872 GB, free: 4.668 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008035/0.4851, allocations: 2.96 MB / 0.5901 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009504/0.486, allocations: 0.6114 MB / 0.5907 GB, free: 1.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.4877, allocations: 1.097 MB / 0.5918 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01385/0.5015, allocations: 6.179 MB / 0.5978 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.5015, allocations: 0 / 0.5978 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5015, allocations: 4 kB / 0.5978 GB, free: 9.781 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.493e-05/0.5016, allocations: 0 / 0.5978 GB, free: 9.781 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.006475/0.5081, allocations: 3.084 MB / 0.6008 GB, free: 6.645 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.5081, allocations: 8.031 kB / 0.6008 GB, free: 6.637 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002348/0.5105, allocations: 0.557 MB / 0.6014 GB, free: 6.078 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002714/0.5132, allocations: 1.254 MB / 0.6026 GB, free: 4.785 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/0.5135, allocations: 283.5 kB / 0.6029 GB, free: 4.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004417/0.5139, allocations: 224 kB / 0.6031 GB, free: 4.262 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004924/0.5188, allocations: 2.675 MB / 0.6057 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.558e-05/0.5189, allocations: 0 / 0.6057 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002172/0.5191, allocations: 92 kB / 0.6058 GB, free: 1.406 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-05/0.5191, allocations: 52 kB / 0.6058 GB, free: 1.355 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005827/0.525, allocations: 3.295 MB / 0.609 GB, free: 14.05 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.01414/0.5391, allocations: 6.999 MB / 0.6159 GB, free: 6.918 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/0.5418, allocations: 1.523 MB / 0.6174 GB, free: 5.391 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.5432, allocations: 0.8585 MB / 0.6182 GB, free: 4.52 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.5537, allocations: 4.269 MB / 0.6224 GB, free: 228 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.5537, allocations: 51.88 kB / 0.6224 GB, free: 168 kB / 462.1 MB Notification: Performance of pre-optimization done (n=128): time 3.547e-06/0.5537, allocations: 4 kB / 0.6224 GB, free: 164 kB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.0309/0.5846, allocations: 8.103 MB / 0.6303 GB, free: 8.004 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.5847, allocations: 99.11 kB / 0.6304 GB, free: 7.887 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.5864, allocations: 1.317 MB / 0.6317 GB, free: 6.559 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.5866, allocations: 53.7 kB / 0.6318 GB, free: 6.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009073/0.5875, allocations: 1.085 MB / 0.6328 GB, free: 5.402 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007046/0.5882, allocations: 0.6624 MB / 0.6335 GB, free: 4.734 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007223/0.5889, allocations: 489.1 kB / 0.6339 GB, free: 4.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5891, allocations: 301.1 kB / 0.6342 GB, free: 3.953 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.5906, allocations: 0.8132 MB / 0.635 GB, free: 3.137 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/0.5928, allocations: 1.665 MB / 0.6367 GB, free: 1.086 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/0.5967, allocations: 2.61 MB / 0.6392 GB, free: 14.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.73e-05/0.5968, allocations: 12 kB / 0.6392 GB, free: 14.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007031/0.6038, allocations: 3.039 MB / 0.6422 GB, free: 11.03 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.6038, allocations: 19.94 kB / 0.6422 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.26e-05/0.6039, allocations: 28 kB / 0.6422 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/0.607, allocations: 0.5185 MB / 0.6427 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/0.6108, allocations: 0.7958 MB / 0.6435 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009539/0.6203, allocations: 7.524 MB / 0.6509 GB, free: 1.668 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.6221, allocations: 91.91 kB / 0.6509 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/0.6224, allocations: 144 kB / 0.6511 GB, free: 1.438 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.0009875/0.6234, allocations: 457.1 kB / 0.6515 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004063/0.6238, allocations: 170.9 kB / 0.6517 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00678/0.6306, allocations: 2.558 MB / 0.6542 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.6306, allocations: 23.94 kB / 0.6542 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.6306, allocations: 3.938 kB / 0.6542 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.317e-05/0.6306, allocations: 11.97 kB / 0.6542 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009867/0.6405, allocations: 4.245 MB / 0.6584 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/0.6405, allocations: 12 kB / 0.6584 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.6421, allocations: 415.4 kB / 0.6588 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003174/0.6453, allocations: 0.5474 MB / 0.6593 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/0.6455, allocations: 87.84 kB / 0.6594 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008684/0.6542, allocations: 7.296 MB / 0.6665 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/0.6542, allocations: 15.94 kB / 0.6665 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007317/0.6615, allocations: 3.462 MB / 0.6699 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004947/0.662, allocations: 166.8 kB / 0.6701 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.6623, allocations: 56 kB / 0.6701 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000982/0.6633, allocations: 47.98 kB / 0.6702 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003396/0.6636, allocations: 204.6 kB / 0.6704 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/0.6638, allocations: 91.97 kB / 0.6705 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001149/0.6649, allocations: 0.8274 MB / 0.6713 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6649, allocations: 0 / 0.6713 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003803/0.6687, allocations: 1.223 MB / 0.6725 GB, free: 10.62 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.002786/0.6715, allocations: 1.329 MB / 0.6738 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005223/0.6767, allocations: 2.366 MB / 0.6761 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/0.6768, allocations: 0 / 0.6761 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.6791, allocations: 1.368 MB / 0.6774 GB, free: 5.48 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.681, allocations: 344.2 kB / 0.6777 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007287/0.6883, allocations: 4.098 MB / 0.6817 GB, free: 0.8516 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.6894, allocations: 0.8499 MB / 0.6826 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/0.6904, allocations: 351.2 kB / 0.6829 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of SimCode: time 1.252e-06/0.6904, allocations: 4 kB / 0.6829 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of Templates: time 0.3036/0.994, allocations: 83.39 MB / 0.7643 GB, free: 161.4 MB / 0.5606 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: 11.520804866217077] Failed to read output from testmodel.py, exit status != 0: 1.0031971796415746 1.011774459 0.507846053 Calling exit ...