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.001134/0.001134, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009388/0.0009388, allocations: 173 kB / 23.02 MB, free: 1.547 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.9653/0.9653, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.1196/0.1196, allocations: 17.38 MB / 277.3 MB, free: 11.65 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 353.4 MB, free: 9.988 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.146e-05/3.366e-05, allocations: 8.641 kB / 353.4 MB, free: 9.98 MB / 282.7 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.07996/0.08, allocations: 33.77 MB / 387.2 MB, free: 8.316 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.1704/0.2504, allocations: 26.24 MB / 413.4 MB, free: 34.1 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.2519, allocations: 34.81 kB / 413.5 MB, free: 34.1 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.2533, allocations: 0.5641 MB / 414 MB, free: 34.1 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00548/0.2587, allocations: 2.208 MB / 416.3 MB, free: 33.77 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008107/0.2668, allocations: 3.633 MB / 419.9 MB, free: 33.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004513/0.2714, allocations: 2.951 MB / 422.8 MB, free: 32.32 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002109/0.2735, allocations: 1.399 MB / 424.2 MB, free: 32.18 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002794/0.2763, allocations: 1.963 MB / 426.2 MB, free: 31.96 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002089/0.2783, allocations: 1.274 MB / 427.5 MB, free: 31.71 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006471/0.279, allocations: 258.1 kB / 427.7 MB, free: 31.71 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006617/0.2856, allocations: 2.728 MB / 430.5 MB, free: 31.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000642/0.2863, allocations: 0.6215 MB / 431.1 MB, free: 30.93 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.2876, allocations: 0.9582 MB / 432 MB, free: 30.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.2983, allocations: 5.273 MB / 437.3 MB, free: 28.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.2983, allocations: 2.656 kB / 437.3 MB, free: 28.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2983, allocations: 0 / 437.3 MB, free: 28.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.017e-05/0.2984, allocations: 0 / 437.3 MB, free: 28.07 MB / 330.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.004264/0.3027, allocations: 3.171 MB / 440.5 MB, free: 25.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3027, allocations: 12.72 kB / 440.5 MB, free: 25.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.3044, allocations: 0.8935 MB / 441.4 MB, free: 25.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.3057, allocations: 1.113 MB / 442.5 MB, free: 24.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.3059, allocations: 273.4 kB / 442.8 MB, free: 24.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/0.3061, allocations: 221.9 kB / 443 MB, free: 24.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002122/0.3082, allocations: 2.05 MB / 445 MB, free: 22.17 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.3082, allocations: 0 / 445 MB, free: 22.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.3084, allocations: 91.94 kB / 445.1 MB, free: 22.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/0.3084, allocations: 54.66 kB / 445.2 MB, free: 22.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002205/0.3106, allocations: 2.062 MB / 447.2 MB, free: 19.98 MB / 330.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.006631/0.3172, allocations: 6.999 MB / 454.2 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.3185, allocations: 1.235 MB / 455.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005726/0.319, allocations: 0.5635 MB / 456 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004879/0.3239, allocations: 4.17 MB / 460.2 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.3239, allocations: 53.45 kB / 460.3 MB, free: 7.098 MB / 330.7 MB Notification: Performance of pre-optimization done (n=128): time 3.136e-06/0.3239, allocations: 0 / 460.3 MB, free: 7.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=181): time 0.014/0.338, allocations: 6.812 MB / 467.1 MB, free: 372 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.338, allocations: 98.2 kB / 467.2 MB, free: 256 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.339, allocations: 1.165 MB / 468.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.607e-05/0.3391, allocations: 57.7 kB / 468.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005576/0.3396, allocations: 1.137 MB / 469.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004353/0.3401, allocations: 0.6577 MB / 470.2 MB, free: 13.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004748/0.3406, allocations: 487.4 kB / 470.7 MB, free: 12.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3407, allocations: 480.7 kB / 471.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007509/0.3414, allocations: 456.8 kB / 471.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.3427, allocations: 1.634 MB / 473.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.3449, allocations: 2.308 MB / 475.5 MB, free: 6.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-05/0.345, allocations: 8 kB / 475.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003743/0.3487, allocations: 2.4 MB / 477.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.3487, allocations: 16 kB / 477.9 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.422e-05/0.3488, allocations: 28 kB / 478 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002049/0.3508, allocations: 0.5931 MB / 478.6 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/0.3527, allocations: 0.7985 MB / 479.4 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005686/0.3584, allocations: 9.816 MB / 489.2 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.3597, allocations: 91.91 kB / 489.3 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/0.3599, allocations: 154.6 kB / 489.4 MB, free: 8.867 MB / 362.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.0005581/0.3604, allocations: 321.6 kB / 489.7 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/0.3608, allocations: 218.9 kB / 489.9 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003349/0.3641, allocations: 2.074 MB / 492 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.3641, allocations: 18.69 kB / 492 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3641, allocations: 4 kB / 492 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.3642, allocations: 14.62 kB / 492.1 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005337/0.3695, allocations: 3.913 MB / 496 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.3695, allocations: 12 kB / 496 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009406/0.3704, allocations: 423.4 kB / 496.4 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002228/0.3727, allocations: 0.6274 MB / 497 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00019/0.3729, allocations: 83.97 kB / 497.1 MB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005086/0.378, allocations: 9.507 MB / 0.4947 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.378, allocations: 15.94 kB / 0.4947 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003809/0.3818, allocations: 2.909 MB / 0.4976 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.3821, allocations: 166.8 kB / 0.4977 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.3823, allocations: 58.69 kB / 0.4978 GB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004975/0.3828, allocations: 47.98 kB / 0.4978 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/0.383, allocations: 196.8 kB / 0.498 GB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.3831, allocations: 91.97 kB / 0.4981 GB, free: 3.305 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006087/0.3837, allocations: 0.6515 MB / 0.4988 GB, free: 2.648 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3837, allocations: 0 / 0.4988 GB, free: 2.648 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002844/0.3866, allocations: 1.153 MB / 0.4999 GB, free: 1.492 MB / 378.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.002208/0.3888, allocations: 1.277 MB / 0.5011 GB, free: 424 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.3919, allocations: 2.017 MB / 0.5031 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/0.3919, allocations: 4 kB / 0.5031 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.3932, allocations: 1.435 MB / 0.5045 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.3946, allocations: 375.5 kB / 0.5049 GB, free: 12.55 MB / 394.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005011/0.3996, allocations: 3.812 MB / 0.5086 GB, free: 8.555 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.3999, allocations: 369.8 kB / 0.5089 GB, free: 8.168 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001092/0.401, allocations: 448 kB / 0.5094 GB, free: 7.859 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004677/0.4015, allocations: 290.4 kB / 0.5096 GB, free: 7.578 MB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/0.4015, allocations: 0 / 0.5096 GB, free: 7.578 MB / 394.7 MB Notification: Performance of Templates: time 0.04769/0.4492, allocations: 45.27 MB / 0.5539 GB, free: 11.06 MB / 442.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.534603925887495]