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.0007553/0.0007553, allocations: 80.48 kB / 19.93 MB, free: 4.621 MB / 18.57 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.0007654/0.0007654, allocations: 173.9 kB / 23.21 MB, free: 1.34 MB / 18.57 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 0.8092/0.8092, allocations: 177.2 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.07744/0.07744, allocations: 17.45 MB / 277.4 MB, free: 11.78 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 412.9 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.571e-05/1.698e-05, allocations: 6.219 kB / 412.9 MB, free: 15.75 MB / 394.7 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.0234/0.02341, allocations: 30.16 MB / 443 MB, free: 1.656 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1507/0.1742, allocations: 25.3 MB / 468.3 MB, free: 48.39 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007086/0.1749, allocations: 31.81 kB / 468.3 MB, free: 48.38 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007786/0.1756, allocations: 0.6058 MB / 469 MB, free: 48.06 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002446/0.1781, allocations: 2.237 MB / 471.2 MB, free: 46.71 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004067/0.1822, allocations: 4.04 MB / 475.2 MB, free: 44.34 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.1834, allocations: 2.958 MB / 478.2 MB, free: 42.83 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000724/0.1841, allocations: 1.35 MB / 479.5 MB, free: 42.17 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008713/0.185, allocations: 1.895 MB / 481.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007677/0.1858, allocations: 1.184 MB / 482.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001848/0.1859, allocations: 262.4 kB / 482.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.189, allocations: 2.988 MB / 485.9 MB, free: 40.46 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.1893, allocations: 0.6164 MB / 486.5 MB, free: 40.06 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004583/0.1897, allocations: 0.9346 MB / 487.4 MB, free: 39.66 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004337/0.1941, allocations: 6.538 MB / 493.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1941, allocations: 2.688 kB / 493.9 MB, free: 36.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1941, allocations: 1.5 kB / 494 MB, free: 36.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.235e-05/0.1941, allocations: 0 / 494 MB, free: 36.88 MB / 410.7 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.003127/0.1972, allocations: 3.07 MB / 497 MB, free: 35.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1973, allocations: 9.719 kB / 497 MB, free: 35.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.1985, allocations: 0.5558 MB / 497.6 MB, free: 34.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.1999, allocations: 1.245 MB / 498.8 MB, free: 34.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.2, allocations: 274.4 kB / 499.1 MB, free: 34.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.2003, allocations: 229 kB / 499.3 MB, free: 33.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002679/0.2029, allocations: 2.676 MB / 0.4902 GB, free: 32.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.426e-05/0.203, allocations: 11.28 kB / 0.4902 GB, free: 32.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.2031, allocations: 90.22 kB / 0.4903 GB, free: 32.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.102e-05/0.2031, allocations: 53.38 kB / 0.4904 GB, free: 32.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003246/0.2064, allocations: 3.291 MB / 0.4936 GB, free: 31.82 MB / 410.7 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.007263/0.2137, allocations: 6.994 MB / 0.5004 GB, free: 27.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.2151, allocations: 1.537 MB / 0.5019 GB, free: 27.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007745/0.2158, allocations: 0.8468 MB / 0.5028 GB, free: 26.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00551/0.2214, allocations: 4.262 MB / 0.5069 GB, free: 24.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.2214, allocations: 48.91 kB / 0.507 GB, free: 24.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 3.236e-06/0.2214, allocations: 0 / 0.507 GB, free: 24.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=181): time 0.01818/0.2396, allocations: 8.104 MB / 0.5149 GB, free: 16.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.2396, allocations: 99.11 kB / 0.515 GB, free: 16.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.2407, allocations: 1.313 MB / 0.5163 GB, free: 14.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.373e-05/0.2407, allocations: 57.7 kB / 0.5163 GB, free: 14.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.241, allocations: 1.081 MB / 0.5174 GB, free: 13.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.2412, allocations: 0.6429 MB / 0.518 GB, free: 13.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003516/0.2416, allocations: 487.6 kB / 0.5185 GB, free: 12.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.145e-05/0.2416, allocations: 305.1 kB / 0.5187 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007451/0.2423, allocations: 0.8171 MB / 0.5195 GB, free: 11.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009345/0.2433, allocations: 1.658 MB / 0.5212 GB, free: 9.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.2451, allocations: 2.617 MB / 0.5237 GB, free: 6.453 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.2451, allocations: 8 kB / 0.5237 GB, free: 6.445 MB / 410.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003228/0.2483, allocations: 3.044 MB / 0.5267 GB, free: 3.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.2483, allocations: 16 kB / 0.5267 GB, free: 3.395 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.2483, allocations: 28 kB / 0.5267 GB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.2497, allocations: 0.5181 MB / 0.5272 GB, free: 2.844 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/0.2514, allocations: 0.7984 MB / 0.528 GB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00453/0.2559, allocations: 7.516 MB / 0.5354 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000761/0.2567, allocations: 98.53 kB / 0.5355 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.2568, allocations: 136 kB / 0.5356 GB, free: 9.875 MB / 426.7 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.0005525/0.2574, allocations: 460.5 kB / 0.536 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.2576, allocations: 162.9 kB / 0.5362 GB, free: 9.258 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003514/0.2611, allocations: 2.564 MB / 0.5387 GB, free: 6.758 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.2611, allocations: 23.98 kB / 0.5387 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2611, allocations: 0 / 0.5387 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.2611, allocations: 11.97 kB / 0.5387 GB, free: 6.723 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005095/0.2662, allocations: 4.265 MB / 0.5429 GB, free: 2.262 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.2662, allocations: 12 kB / 0.5429 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008064/0.267, allocations: 422.1 kB / 0.5433 GB, free: 1.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.2685, allocations: 0.542 MB / 0.5438 GB, free: 1.289 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-05/0.2686, allocations: 75.97 kB / 0.5439 GB, free: 1.215 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00423/0.2728, allocations: 7.294 MB / 0.551 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.2728, allocations: 15.94 kB / 0.551 GB, free: 9.457 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.2765, allocations: 3.44 MB / 0.5544 GB, free: 5.848 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.2767, allocations: 174.7 kB / 0.5546 GB, free: 5.676 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.2768, allocations: 55.98 kB / 0.5546 GB, free: 5.621 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004774/0.2773, allocations: 48 kB / 0.5547 GB, free: 5.574 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.2775, allocations: 199.3 kB / 0.5549 GB, free: 5.383 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-05/0.2775, allocations: 87.97 kB / 0.5549 GB, free: 5.297 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006138/0.2782, allocations: 0.8391 MB / 0.5558 GB, free: 4.453 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2782, allocations: 3.938 kB / 0.5558 GB, free: 4.449 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002394/0.2806, allocations: 1.206 MB / 0.5569 GB, free: 3.242 MB / 442.7 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.001568/0.2821, allocations: 1.376 MB / 0.5583 GB, free: 1.926 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.2847, allocations: 2.359 MB / 0.5606 GB, free: 15.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.2847, allocations: 4 kB / 0.5606 GB, free: 15.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.2858, allocations: 1.371 MB / 0.5619 GB, free: 14.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.2869, allocations: 337.8 kB / 0.5623 GB, free: 13.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.2905, allocations: 3.933 MB / 0.5661 GB, free: 9.793 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005472/0.2911, allocations: 0.8524 MB / 0.5669 GB, free: 8.926 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005046/0.2916, allocations: 360.2 kB / 0.5673 GB, free: 8.586 MB / 458.7 MB Notification: Performance of SimCode: time 6.52e-07/0.2916, allocations: 2.688 kB / 0.5673 GB, free: 8.586 MB / 458.7 MB Notification: Performance of Templates: time 0.1777/0.4692, allocations: 83.59 MB / 0.6489 GB, free: 147.4 MB / 0.4948 GB " [Timeout remaining time 660] 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.130702841095626] Failed to read output from testmodel.py, exit status != 0: 0.4741156045347452 0.481287928 0.285702773 Calling exit ...