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.00158/0.00158, allocations: 113.8 kB / 17.61 MB, free: 4.703 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.0018/0.0018, allocations: 186 kB / 20.78 MB, free: 1.547 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.573/1.573, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.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.127/0.127, allocations: 15.54 MB / 320 MB, free: 13.11 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.001934/0.001934, allocations: 66.58 kB / 448.2 MB, free: 46.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1177, allocations: 56.56 MB / 0.493 GB, free: 19.03 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.03983/0.1575, allocations: 30.74 MB / 0.523 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0415/0.199, allocations: 28.85 MB / 0.5511 GB, free: 9.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002639/0.2016, allocations: 23.88 kB / 0.5512 GB, free: 9.453 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.2037, allocations: 0.6631 MB / 0.5518 GB, free: 8.785 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007394/0.2111, allocations: 2.188 MB / 0.554 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0115/0.2226, allocations: 3.887 MB / 0.5577 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005008/0.2276, allocations: 2.848 MB / 0.5605 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002079/0.2297, allocations: 1.361 MB / 0.5619 GB, free: 14.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.2317, allocations: 1.321 MB / 0.5631 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002401/0.2341, allocations: 1.506 MB / 0.5646 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005197/0.2346, allocations: 260 kB / 0.5649 GB, free: 11.31 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01001/0.2446, allocations: 3.151 MB / 0.5679 GB, free: 8.156 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009536/0.2456, allocations: 0.6037 MB / 0.5685 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001743/0.2473, allocations: 1.303 MB / 0.5698 GB, free: 6.242 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01726/0.2646, allocations: 6.027 MB / 0.5757 GB, free: 196 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2646, allocations: 0 / 0.5757 GB, free: 196 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2646, allocations: 0 / 0.5757 GB, free: 196 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001144/0.2647, allocations: 0 / 0.5757 GB, free: 196 kB / 430.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.007669/0.2724, allocations: 3.171 MB / 0.5788 GB, free: 12.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.2724, allocations: 8.031 kB / 0.5788 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002608/0.2751, allocations: 0.5531 MB / 0.5793 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.2777, allocations: 1.319 MB / 0.5806 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.2779, allocations: 224.1 kB / 0.5808 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004148/0.2783, allocations: 220 kB / 0.581 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005175/0.2835, allocations: 2.675 MB / 0.5837 GB, free: 7.805 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.565e-05/0.2836, allocations: 3.938 kB / 0.5837 GB, free: 7.801 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002141/0.2838, allocations: 92 kB / 0.5837 GB, free: 7.711 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.651e-05/0.2838, allocations: 52 kB / 0.5838 GB, free: 7.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005768/0.2896, allocations: 3.302 MB / 0.587 GB, free: 4.355 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.01531/0.3049, allocations: 8.667 MB / 0.5955 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002928/0.3078, allocations: 1.9 MB / 0.5973 GB, free: 9.336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3092, allocations: 0.8548 MB / 0.5982 GB, free: 8.473 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3092/0.6184, allocations: 7.884 MB / 0.6059 GB, free: 96.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.6184, allocations: 47.53 kB / 0.6059 GB, free: 96.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=128): time 3.887e-06/0.6184, allocations: 0 / 0.6059 GB, free: 96.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03326/0.6517, allocations: 8.245 MB / 0.614 GB, free: 95.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/0.6518, allocations: 98.2 kB / 0.6141 GB, free: 95.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.6541, allocations: 1.358 MB / 0.6154 GB, free: 94.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000331/0.6544, allocations: 56.55 kB / 0.6154 GB, free: 94.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006814/0.6551, allocations: 1.082 MB / 0.6165 GB, free: 93.82 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007468/0.6558, allocations: 0.6539 MB / 0.6171 GB, free: 93.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008015/0.6566, allocations: 484.4 kB / 0.6176 GB, free: 93.17 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.747e-05/0.6567, allocations: 311.5 kB / 0.6179 GB, free: 92.87 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/0.6583, allocations: 0.8123 MB / 0.6187 GB, free: 92.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/0.6604, allocations: 1.66 MB / 0.6203 GB, free: 91.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/0.6637, allocations: 2.6 MB / 0.6229 GB, free: 89.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-05/0.6637, allocations: 8.031 kB / 0.6229 GB, free: 89.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00717/0.6709, allocations: 3.043 MB / 0.6258 GB, free: 88.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.614e-05/0.671, allocations: 15.72 kB / 0.6259 GB, free: 88.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.609e-05/0.671, allocations: 27.66 kB / 0.6259 GB, free: 88.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/0.6741, allocations: 0.5158 MB / 0.6264 GB, free: 88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003507/0.6776, allocations: 0.7993 MB / 0.6272 GB, free: 87.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0072/0.6848, allocations: 8.044 MB / 0.635 GB, free: 80.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/0.687, allocations: 99.44 kB / 0.6351 GB, free: 80.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/0.6873, allocations: 142.1 kB / 0.6352 GB, free: 80.32 MB / 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.001034/0.6883, allocations: 450.7 kB / 0.6357 GB, free: 80.01 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004425/0.6887, allocations: 176.4 kB / 0.6358 GB, free: 79.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006094/0.6948, allocations: 2.573 MB / 0.6384 GB, free: 78.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.6949, allocations: 21.72 kB / 0.6384 GB, free: 78.81 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.6949, allocations: 3.781 kB / 0.6384 GB, free: 78.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.6949, allocations: 11.91 kB / 0.6384 GB, free: 78.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008826/0.7037, allocations: 4.765 MB / 0.643 GB, free: 74.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/0.7037, allocations: 12 kB / 0.6431 GB, free: 74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.7051, allocations: 418 kB / 0.6435 GB, free: 73.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003082/0.7082, allocations: 0.5573 MB / 0.644 GB, free: 73.03 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.7084, allocations: 79.97 kB / 0.6441 GB, free: 72.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006175/0.7146, allocations: 7.833 MB / 0.6517 GB, free: 64.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/0.7146, allocations: 19.88 kB / 0.6517 GB, free: 64.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006395/0.721, allocations: 3.459 MB / 0.6551 GB, free: 60.92 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006468/0.7216, allocations: 258.7 kB / 0.6554 GB, free: 60.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002439/0.7219, allocations: 57.41 kB / 0.6554 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000962/0.7228, allocations: 51.94 kB / 0.6555 GB, free: 60.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000311/0.7232, allocations: 187.7 kB / 0.6557 GB, free: 60.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.7233, allocations: 99.95 kB / 0.6557 GB, free: 60.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009055/0.7242, allocations: 0.885 MB / 0.6566 GB, free: 59.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7242, allocations: 0 / 0.6566 GB, free: 59.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003894/0.7281, allocations: 1.216 MB / 0.6578 GB, free: 58.25 MB / 462.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.002474/0.7306, allocations: 1.321 MB / 0.6591 GB, free: 57.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004463/0.735, allocations: 2.353 MB / 0.6614 GB, free: 54.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.772e-05/0.7351, allocations: 6.688 kB / 0.6614 GB, free: 54.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.7368, allocations: 1.367 MB / 0.6627 GB, free: 53.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.7392, allocations: 343.9 kB / 0.6631 GB, free: 53.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006573/0.7458, allocations: 4.054 MB / 0.667 GB, free: 48.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009171/0.7467, allocations: 1.435 MB / 0.6684 GB, free: 47.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001968/0.7487, allocations: 463.9 kB / 0.6689 GB, free: 47.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005831/0.7492, allocations: 288.5 kB / 0.6691 GB, free: 46.92 MB / 462.1 MB Notification: Performance of SimCode: time 1.984e-06/0.7492, allocations: 0 / 0.6691 GB, free: 46.92 MB / 462.1 MB Notification: Performance of Templates: time 0.05181/0.8011, allocations: 42.83 MB / 0.711 GB, free: 4.723 MB / 462.1 MB " [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.306848015636206]