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.001601/0.001601, allocations: 114 kB / 16.42 MB, free: 6.512 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.00182/0.00182, allocations: 187.9 kB / 17.35 MB, free: 5.738 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.291/1.291, 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.07364/0.07364, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 64.12 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08624, allocations: 53.62 MB / 479.5 MB, free: 5.781 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.03762/0.1239, allocations: 29.64 MB / 0.4972 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2033/0.3272, allocations: 24.87 MB / 0.5215 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.3283, allocations: 24.91 kB / 0.5215 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.3298, allocations: 0.6062 MB / 0.5221 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004499/0.3343, allocations: 1.855 MB / 0.5239 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008355/0.3427, allocations: 3.422 MB / 0.5272 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003063/0.3457, allocations: 2.702 MB / 0.5299 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.3476, allocations: 1.767 MB / 0.5316 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.3488, allocations: 1.244 MB / 0.5328 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3504, allocations: 1.425 MB / 0.5342 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003662/0.3507, allocations: 261.6 kB / 0.5345 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007657/0.3584, allocations: 2.693 MB / 0.5371 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004219/0.3588, allocations: 0.6121 MB / 0.5377 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.36, allocations: 1.27 MB / 0.5389 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008885/0.3689, allocations: 5.51 MB / 0.5443 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3689, allocations: 1.625 kB / 0.5443 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3689, allocations: 2.594 kB / 0.5443 GB, free: 3.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.3689, allocations: 0 / 0.5443 GB, free: 3.531 MB / 382.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.00435/0.3733, allocations: 2.968 MB / 0.5472 GB, free: 1.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3733, allocations: 16.02 kB / 0.5472 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001811/0.3751, allocations: 0.5012 MB / 0.5477 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.3769, allocations: 1.275 MB / 0.549 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.3771, allocations: 216.5 kB / 0.5492 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003201/0.3774, allocations: 219.8 kB / 0.5494 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004049/0.3815, allocations: 2.69 MB / 0.552 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.677e-05/0.3815, allocations: 3.938 kB / 0.552 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002218/0.3818, allocations: 90.66 kB / 0.5521 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.702e-05/0.3818, allocations: 52 kB / 0.5522 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004588/0.3864, allocations: 3.158 MB / 0.5552 GB, free: 8.68 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.0129/0.3993, allocations: 9.223 MB / 0.5642 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.4018, allocations: 1.85 MB / 0.5661 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.403, allocations: 0.8921 MB / 0.5669 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009851/0.4129, allocations: 7.441 MB / 0.5742 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.4129, allocations: 50.16 kB / 0.5742 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008025/0.4137, allocations: 206.2 kB / 0.5744 GB, free: 3.883 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 2.735e-06/0.4138, allocations: 2.688 kB / 0.5744 GB, free: 3.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.03532/0.4491, allocations: 9.478 MB / 0.5837 GB, free: 10.4 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.4492, allocations: 124.1 kB / 0.5838 GB, free: 10.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.4508, allocations: 1.341 MB / 0.5851 GB, free: 8.895 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.4509, allocations: 56.39 kB / 0.5852 GB, free: 8.836 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006558/0.4516, allocations: 1.049 MB / 0.5862 GB, free: 7.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005178/0.4521, allocations: 0.5624 MB / 0.5867 GB, free: 7.199 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006714/0.4528, allocations: 472.3 kB / 0.5872 GB, free: 6.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.12e-05/0.4529, allocations: 305.1 kB / 0.5875 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.4543, allocations: 0.8467 MB / 0.5883 GB, free: 5.582 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/0.4563, allocations: 1.716 MB / 0.59 GB, free: 3.484 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00357/0.4599, allocations: 2.689 MB / 0.5926 GB, free: 472 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.4599, allocations: 8 kB / 0.5926 GB, free: 464 kB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008786/0.4687, allocations: 3.473 MB / 0.596 GB, free: 12.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.4687, allocations: 16 kB / 0.596 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.013e-05/0.4688, allocations: 28 kB / 0.5961 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005379/0.4741, allocations: 1.161 MB / 0.5972 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0017/0.4759, allocations: 0.5155 MB / 0.5977 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009867/0.4857, allocations: 7.622 MB / 0.6051 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.4874, allocations: 102.4 kB / 0.6052 GB, free: 3.145 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002667/0.4877, allocations: 147.9 kB / 0.6054 GB, free: 3 MB / 446.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.0009022/0.4886, allocations: 451.5 kB / 0.6058 GB, free: 2.551 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/0.4891, allocations: 158 kB / 0.606 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008228/0.4973, allocations: 2.854 MB / 0.6087 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/0.4973, allocations: 14.59 kB / 0.6088 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.4973, allocations: 0 / 0.6088 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003038/0.4976, allocations: 211 kB / 0.609 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003154/0.498, allocations: 32 kB / 0.609 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4991, allocations: 35.98 kB / 0.609 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003996/0.4995, allocations: 157.8 kB / 0.6092 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006607/0.5061, allocations: 2.646 MB / 0.6118 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004241/0.5104, allocations: 2.996 MB / 0.6147 GB, free: 9.492 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001145/0.5115, allocations: 0.7769 MB / 0.6154 GB, free: 8.715 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001034/0.5126, allocations: 0.8804 MB / 0.6163 GB, free: 7.832 MB / 462.1 MB Notification: Performance of Backend: time 3e-07/0.5126, allocations: 0 / 0.6163 GB, free: 7.832 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007504/0.5201, allocations: 3.589 MB / 0.6198 GB, free: 4.27 MB / 462.1 MB Notification: Performance of SimCode: time 0.005411/0.5255, allocations: 4.052 MB / 0.6238 GB, free: 240 kB / 462.1 MB Notification: Performance of Templates: time 0.06552/0.591, allocations: 47.24 MB / 0.6699 GB, free: 1.266 MB / 0.4981 GB 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)