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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 112 kB / 16.41 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 183 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07886/0.07886, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 67.89 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09716, allocations: 53.6 MB / 479.5 MB, free: 5.805 MB / 350.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.03885/0.1361, allocations: 29.76 MB / 0.4973 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2588/0.3949, allocations: 28.7 MB / 0.5253 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.3968, allocations: 24.75 kB / 0.5253 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.3989, allocations: 0.6466 MB / 0.526 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007777/0.4067, allocations: 2.178 MB / 0.5281 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01271/0.4195, allocations: 3.855 MB / 0.5319 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005095/0.4246, allocations: 2.85 MB / 0.5346 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002505/0.4271, allocations: 1.675 MB / 0.5363 GB, free: 7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0024/0.4295, allocations: 1.324 MB / 0.5376 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002575/0.4321, allocations: 1.489 MB / 0.539 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005091/0.4327, allocations: 259.5 kB / 0.5393 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0123/0.445, allocations: 3.109 MB / 0.5423 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009627/0.446, allocations: 0.6078 MB / 0.5429 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.4479, allocations: 1.295 MB / 0.5442 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01589/0.4638, allocations: 6.003 MB / 0.55 GB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4639, allocations: 2.656 kB / 0.55 GB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.609e-06/0.4639, allocations: 0 / 0.55 GB, free: 14.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.102e-05/0.4639, allocations: 3.938 kB / 0.55 GB, free: 14.28 MB / 398.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.006361/0.4703, allocations: 3.085 MB / 0.553 GB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.4704, allocations: 8.031 kB / 0.553 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002323/0.4727, allocations: 0.5518 MB / 0.5536 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.475, allocations: 1.291 MB / 0.5548 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.4752, allocations: 220.3 kB / 0.5551 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000385/0.4756, allocations: 231.8 kB / 0.5553 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004573/0.4802, allocations: 2.668 MB / 0.5579 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/0.4802, allocations: 0 / 0.5579 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002136/0.4805, allocations: 88 kB / 0.558 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.983e-05/0.4805, allocations: 52 kB / 0.558 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005136/0.4856, allocations: 3.315 MB / 0.5613 GB, free: 2.598 MB / 398.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.01405/0.4997, allocations: 8.645 MB / 0.5697 GB, free: 9.641 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.5025, allocations: 1.996 MB / 0.5716 GB, free: 7.551 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.5038, allocations: 0.9251 MB / 0.5726 GB, free: 6.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01228/0.5161, allocations: 7.896 MB / 0.5803 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.602e-05/0.5162, allocations: 47.88 kB / 0.5803 GB, free: 13.83 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 3.296e-06/0.5162, allocations: 2.625 kB / 0.5803 GB, free: 13.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.03153/0.5478, allocations: 8.193 MB / 0.5883 GB, free: 5.633 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.5479, allocations: 95.11 kB / 0.5884 GB, free: 5.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/0.5499, allocations: 1.358 MB / 0.5897 GB, free: 4.145 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002547/0.5501, allocations: 53.7 kB / 0.5898 GB, free: 4.086 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007959/0.5509, allocations: 1.05 MB / 0.5908 GB, free: 3.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007208/0.5517, allocations: 0.6265 MB / 0.5914 GB, free: 2.387 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00084/0.5525, allocations: 476.8 kB / 0.5919 GB, free: 1.914 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.5526, allocations: 313.1 kB / 0.5922 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.5542, allocations: 0.8093 MB / 0.593 GB, free: 0.793 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002208/0.5564, allocations: 1.657 MB / 0.5946 GB, free: 14.78 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004023/0.5604, allocations: 2.612 MB / 0.5971 GB, free: 11.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-05/0.5605, allocations: 8 kB / 0.5971 GB, free: 11.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007093/0.5676, allocations: 3.036 MB / 0.6001 GB, free: 8.812 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.5676, allocations: 19.94 kB / 0.6001 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.103e-05/0.5677, allocations: 28 kB / 0.6001 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003147/0.5708, allocations: 0.5168 MB / 0.6007 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00385/0.5747, allocations: 0.8035 MB / 0.6014 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009363/0.5841, allocations: 8.037 MB / 0.6093 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.5862, allocations: 94.55 kB / 0.6094 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004968/0.5868, allocations: 136 kB / 0.6095 GB, free: 14.61 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.001269/0.588, allocations: 465.4 kB / 0.6099 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006115/0.5887, allocations: 165.9 kB / 0.6101 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006961/0.5956, allocations: 2.573 MB / 0.6126 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.319e-05/0.5957, allocations: 20 kB / 0.6126 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.5957, allocations: 2.656 kB / 0.6126 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.5957, allocations: 7.969 kB / 0.6126 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.6064, allocations: 4.778 MB / 0.6173 GB, free: 6.445 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-05/0.6064, allocations: 12 kB / 0.6173 GB, free: 6.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/0.6081, allocations: 419.4 kB / 0.6177 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003231/0.6113, allocations: 0.5445 MB / 0.6183 GB, free: 5.473 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/0.6116, allocations: 79.97 kB / 0.6183 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008171/0.6198, allocations: 7.845 MB / 0.626 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/0.6198, allocations: 15.94 kB / 0.626 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00731/0.6271, allocations: 3.473 MB / 0.6294 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005381/0.6277, allocations: 242.8 kB / 0.6296 GB, free: 9.062 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004184/0.6281, allocations: 59.98 kB / 0.6297 GB, free: 9.004 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.6294, allocations: 47.98 kB / 0.6297 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/0.6298, allocations: 190.1 kB / 0.6299 GB, free: 8.777 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/0.63, allocations: 95.97 kB / 0.63 GB, free: 8.684 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001318/0.6313, allocations: 0.8927 MB / 0.6309 GB, free: 7.789 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6313, allocations: 2.656 kB / 0.6309 GB, free: 7.789 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004197/0.6355, allocations: 1.194 MB / 0.6321 GB, free: 6.594 MB / 478.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.003139/0.6387, allocations: 1.303 MB / 0.6333 GB, free: 5.328 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005271/0.6439, allocations: 2.485 MB / 0.6357 GB, free: 2.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/0.644, allocations: 4 kB / 0.6358 GB, free: 2.816 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/0.6464, allocations: 1.431 MB / 0.6372 GB, free: 1.336 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/0.6488, allocations: 346.6 kB / 0.6375 GB, free: 1.02 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007134/0.656, allocations: 4.014 MB / 0.6414 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.6573, allocations: 1.429 MB / 0.6428 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.6584, allocations: 364.8 kB / 0.6431 GB, free: 11.02 MB / 494.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6584, allocations: 0 / 0.6431 GB, free: 11.02 MB / 494.1 MB Notification: Performance of Templates: time 0.3099/0.9683, allocations: 81.86 MB / 0.7231 GB, free: 188.8 MB / 0.545 GB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile (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)