Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005727/0.005727, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001205/0.001205, allocations: 193.4 kB / 16.79 MB, free: 5.809 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.314/1.314, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2502/0.2502, allocations: 15.31 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001243, allocations: 59.91 kB / 370.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 53.6 MB / 423.9 MB, free: 14.74 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.3725/0.4759, allocations: 30.71 MB / 454.6 MB, free: 38.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02548/0.5014, allocations: 24.87 MB / 479.5 MB, free: 26.69 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002911/0.5043, allocations: 46.28 kB / 479.5 MB, free: 26.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.5068, allocations: 0.5443 MB / 480.1 MB, free: 26.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007981/0.5148, allocations: 1.661 MB / 481.7 MB, free: 25.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01305/0.5279, allocations: 2.985 MB / 484.7 MB, free: 23.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.5328, allocations: 2.614 MB / 487.3 MB, free: 22.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00303/0.5358, allocations: 1.511 MB / 488.8 MB, free: 21.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.5391, allocations: 1.202 MB / 490 MB, free: 21.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.5423, allocations: 1.388 MB / 491.4 MB, free: 20.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001065/0.5434, allocations: 173.9 kB / 491.6 MB, free: 20.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01407/0.5575, allocations: 2.624 MB / 494.2 MB, free: 20.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.5591, allocations: 0.5214 MB / 494.7 MB, free: 19.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00302/0.5621, allocations: 1.195 MB / 495.9 MB, free: 19.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007256/0.5694, allocations: 4.079 MB / 0.4883 GB, free: 17.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.5694, allocations: 0 / 0.4883 GB, free: 17.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5694, allocations: 3.938 kB / 0.4883 GB, free: 17.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001552/0.5696, allocations: 0 / 0.4883 GB, free: 17.36 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.008439/0.5781, allocations: 2.967 MB / 0.4912 GB, free: 14.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.5781, allocations: 12.92 kB / 0.4912 GB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002742/0.5809, allocations: 0.5011 MB / 0.4917 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.5832, allocations: 1.243 MB / 0.4929 GB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.5834, allocations: 228 kB / 0.4931 GB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003504/0.5838, allocations: 217.5 kB / 0.4933 GB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.5879, allocations: 2.689 MB / 0.496 GB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.95e-05/0.5879, allocations: 0.5625 kB / 0.496 GB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.5882, allocations: 88 kB / 0.4961 GB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.744e-05/0.5882, allocations: 52 kB / 0.4961 GB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004626/0.5928, allocations: 3.159 MB / 0.4992 GB, free: 7.875 MB / 366.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.013/0.6059, allocations: 9.262 MB / 0.5082 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.6086, allocations: 1.844 MB / 0.51 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.61, allocations: 0.8999 MB / 0.5109 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0115/0.6215, allocations: 7.454 MB / 0.5182 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.6215, allocations: 51.5 kB / 0.5182 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001064/0.6226, allocations: 202.3 kB / 0.5184 GB, free: 3.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 4.088e-06/0.6226, allocations: 0 / 0.5184 GB, free: 3.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03804/0.6607, allocations: 9.495 MB / 0.5277 GB, free: 10.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.6608, allocations: 120.1 kB / 0.5278 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001672/0.6625, allocations: 1.337 MB / 0.5291 GB, free: 8.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003264/0.6629, allocations: 53.7 kB / 0.5292 GB, free: 8.812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006719/0.6635, allocations: 1.053 MB / 0.5302 GB, free: 7.742 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005507/0.6641, allocations: 0.5624 MB / 0.5308 GB, free: 7.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006797/0.6648, allocations: 468.4 kB / 0.5312 GB, free: 6.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.665e-05/0.6649, allocations: 305.1 kB / 0.5315 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.6663, allocations: 0.848 MB / 0.5323 GB, free: 5.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/0.6684, allocations: 1.709 MB / 0.534 GB, free: 3.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003837/0.6722, allocations: 2.697 MB / 0.5366 GB, free: 360 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.6723, allocations: 8 kB / 0.5366 GB, free: 352 kB / 398.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009137/0.6814, allocations: 3.471 MB / 0.54 GB, free: 12.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.6815, allocations: 28.45 kB / 0.5401 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.49e-05/0.6816, allocations: 35.94 kB / 0.5401 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005771/0.6873, allocations: 1.16 MB / 0.5412 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001997/0.6894, allocations: 0.5031 MB / 0.5417 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009924/0.6993, allocations: 7.035 MB / 0.5486 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.7016, allocations: 135.6 kB / 0.5487 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/0.7019, allocations: 140 kB / 0.5488 GB, free: 3.367 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001/0.7029, allocations: 452.9 kB / 0.5493 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/0.7034, allocations: 154 kB / 0.5494 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008322/0.7118, allocations: 2.843 MB / 0.5522 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.7118, allocations: 20 kB / 0.5522 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.7118, allocations: 0 / 0.5522 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.79e-05/0.7119, allocations: 11.97 kB / 0.5522 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.7237, allocations: 4.873 MB / 0.557 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/0.7238, allocations: 0 / 0.557 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.7251, allocations: 263.5 kB / 0.5572 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005099/0.7302, allocations: 1.05 MB / 0.5583 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002798/0.7305, allocations: 59.97 kB / 0.5583 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008028/0.7385, allocations: 6.394 MB / 0.5646 GB, free: 2.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.7386, allocations: 4 kB / 0.5646 GB, free: 2.676 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008791/0.7474, allocations: 3.671 MB / 0.5682 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005323/0.7479, allocations: 215.1 kB / 0.5684 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/0.7482, allocations: 32 kB / 0.5684 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.7494, allocations: 75.81 kB / 0.5685 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003692/0.7497, allocations: 149 kB / 0.5686 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/0.7499, allocations: 71.95 kB / 0.5687 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.751, allocations: 0.8843 MB / 0.5695 GB, free: 13.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.751, allocations: 0 / 0.5695 GB, free: 13.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00371/0.7547, allocations: 1.085 MB / 0.5706 GB, free: 12.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002396/0.7571, allocations: 1.12 MB / 0.5717 GB, free: 11.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005294/0.7625, allocations: 2.778 MB / 0.5744 GB, free: 8.457 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.7625, allocations: 0 / 0.5744 GB, free: 8.457 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.7651, allocations: 1.471 MB / 0.5758 GB, free: 6.926 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.7669, allocations: 273 kB / 0.5761 GB, free: 6.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006991/0.7739, allocations: 4.602 MB / 0.5806 GB, free: 2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009105/0.7748, allocations: 1.391 MB / 0.582 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008696/0.7757, allocations: 295.4 kB / 0.5822 GB, free: 292 kB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.7757, allocations: 0 / 0.5822 GB, free: 292 kB / 446.1 MB Notification: Performance of Templates: time 0.2415/1.017, allocations: 71.87 MB / 0.6524 GB, free: 106.9 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)