Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 103.5 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 187.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1001/0.1001, allocations: 15.53 MB / 318.2 MB, free: 10.21 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 63.89 kB / 445.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1258, allocations: 56.55 MB / 0.4902 GB, free: 4.395 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ElectrochemicalCell): time 0.4906/0.6164, allocations: 30.68 MB / 0.5202 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03801/0.6544, allocations: 28.79 MB / 0.5483 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00224/0.6567, allocations: 26.41 kB / 0.5483 GB, free: 5.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003079/0.6598, allocations: 0.6498 MB / 0.5489 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009464/0.6692, allocations: 2.203 MB / 0.5511 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01664/0.6859, allocations: 3.879 MB / 0.5549 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005094/0.691, allocations: 2.857 MB / 0.5577 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002485/0.6934, allocations: 1.376 MB / 0.559 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.6959, allocations: 1.317 MB / 0.5603 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003651/0.6996, allocations: 1.511 MB / 0.5618 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001073/0.7007, allocations: 260.9 kB / 0.562 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01569/0.7163, allocations: 3.142 MB / 0.5651 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001245/0.7176, allocations: 0.6068 MB / 0.5657 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.7198, allocations: 1.307 MB / 0.5669 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01819/0.738, allocations: 6.017 MB / 0.5728 GB, free: 6.164 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.738, allocations: 3.938 kB / 0.5728 GB, free: 6.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.738, allocations: 4 kB / 0.5728 GB, free: 6.156 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.088e-05/0.738, allocations: 0 / 0.5728 GB, free: 6.156 MB / 414.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.006268/0.7443, allocations: 3.175 MB / 0.5759 GB, free: 2.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.7444, allocations: 11.97 kB / 0.5759 GB, free: 2.898 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002417/0.7468, allocations: 0.5531 MB / 0.5765 GB, free: 2.344 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002379/0.7492, allocations: 1.303 MB / 0.5778 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002549/0.7494, allocations: 232.1 kB / 0.578 GB, free: 0.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000381/0.7498, allocations: 224 kB / 0.5782 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004983/0.7548, allocations: 2.663 MB / 0.5808 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.462e-05/0.7548, allocations: 0 / 0.5808 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/0.755, allocations: 92 kB / 0.5809 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.077e-05/0.7551, allocations: 56 kB / 0.5809 GB, free: 13.63 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005616/0.7607, allocations: 3.306 MB / 0.5842 GB, free: 10.32 MB / 430.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.01489/0.7756, allocations: 8.667 MB / 0.5926 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002907/0.7785, allocations: 1.912 MB / 0.5945 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.7799, allocations: 0.8447 MB / 0.5953 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.7926, allocations: 7.895 MB / 0.603 GB, free: 5.695 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.7926, allocations: 47.88 kB / 0.6031 GB, free: 5.641 MB / 446.1 MB Notification: Performance of pre-optimization done (n=128): time 2.896e-06/0.7926, allocations: 0 / 0.6031 GB, free: 5.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=181): time 0.03042/0.823, allocations: 8.247 MB / 0.6111 GB, free: 13.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/0.8231, allocations: 99.05 kB / 0.6112 GB, free: 13.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/0.8249, allocations: 1.358 MB / 0.6125 GB, free: 11.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.825, allocations: 53.7 kB / 0.6126 GB, free: 11.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007522/0.8258, allocations: 1.081 MB / 0.6137 GB, free: 10.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005745/0.8263, allocations: 0.6624 MB / 0.6143 GB, free: 9.988 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007065/0.827, allocations: 481 kB / 0.6148 GB, free: 9.512 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.8272, allocations: 301.1 kB / 0.615 GB, free: 9.215 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.8286, allocations: 0.8171 MB / 0.6158 GB, free: 8.395 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/0.8307, allocations: 1.65 MB / 0.6175 GB, free: 6.363 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003787/0.8345, allocations: 2.61 MB / 0.62 GB, free: 3.375 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/0.8345, allocations: 8 kB / 0.62 GB, free: 3.367 MB / 462.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006766/0.8413, allocations: 3.043 MB / 0.623 GB, free: 312 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.8413, allocations: 23.94 kB / 0.623 GB, free: 288 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.036e-05/0.8414, allocations: 28 kB / 0.623 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003031/0.8444, allocations: 0.5065 MB / 0.6235 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/0.8481, allocations: 0.7958 MB / 0.6243 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009338/0.8574, allocations: 8.058 MB / 0.6322 GB, free: 6.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/0.8592, allocations: 91.91 kB / 0.6323 GB, free: 6.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002521/0.8594, allocations: 140 kB / 0.6324 GB, free: 6.043 MB / 478.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.0009144/0.8604, allocations: 464.9 kB / 0.6328 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003855/0.8607, allocations: 170.9 kB / 0.633 GB, free: 5.41 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006608/0.8674, allocations: 2.574 MB / 0.6355 GB, free: 2.801 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.8674, allocations: 20 kB / 0.6355 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.8674, allocations: 0 / 0.6355 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.8674, allocations: 7.969 kB / 0.6355 GB, free: 2.773 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00989/0.8773, allocations: 4.77 MB / 0.6402 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.8773, allocations: 8 kB / 0.6402 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/0.8789, allocations: 419.4 kB / 0.6406 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003157/0.8821, allocations: 0.5436 MB / 0.6411 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001923/0.8822, allocations: 83.95 kB / 0.6412 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008688/0.8909, allocations: 7.84 MB / 0.6489 GB, free: 4.242 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.62e-05/0.891, allocations: 19.94 kB / 0.6489 GB, free: 4.223 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00715/0.8981, allocations: 3.455 MB / 0.6523 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005787/0.8987, allocations: 259.8 kB / 0.6525 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/0.8989, allocations: 63.92 kB / 0.6526 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.9, allocations: 44 kB / 0.6526 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003363/0.9003, allocations: 196.7 kB / 0.6528 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/0.9005, allocations: 91.97 kB / 0.6529 GB, free: 15.93 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.001213/0.9017, allocations: 0.8928 MB / 0.6538 GB, free: 15.03 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9017, allocations: 0 / 0.6538 GB, free: 15.03 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.003803/0.9055, allocations: 1.219 MB / 0.655 GB, free: 13.81 MB / 0.4982 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.002902/0.9084, allocations: 1.319 MB / 0.6562 GB, free: 12.48 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.005539/0.9139, allocations: 2.362 MB / 0.6586 GB, free: 10.09 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/0.914, allocations: 0 / 0.6586 GB, free: 10.09 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.002358/0.9163, allocations: 1.356 MB / 0.6599 GB, free: 8.684 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.9188, allocations: 348.8 kB / 0.6602 GB, free: 8.344 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007285/0.9261, allocations: 4.059 MB / 0.6642 GB, free: 4.094 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.9274, allocations: 1.429 MB / 0.6656 GB, free: 2.633 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.001843/0.9292, allocations: 458.3 kB / 0.666 GB, free: 2.18 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007402/0.93, allocations: 291.2 kB / 0.6663 GB, free: 1.895 MB / 0.4982 GB Notification: Performance of SimCode: time 1.823e-06/0.93, allocations: 4 kB / 0.6663 GB, free: 1.891 MB / 0.4982 GB Notification: Performance of Templates: time 0.07625/1.006, allocations: 41.98 MB / 0.7073 GB, free: 8.004 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.4732502633705735]