Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 107.8 kB / 16.41 MB, free: 6.457 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.001087/0.001087, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.277/1.277, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07358/0.07358, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 67.91 kB / 425.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0786/0.07981, allocations: 53.61 MB / 479.5 MB, free: 5.922 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.MethanElectrosynthesis): time 0.03534/0.1152, allocations: 28.96 MB / 0.4965 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1903/0.3055, allocations: 22.03 MB / 0.518 GB, free: 18.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009381/0.3064, allocations: 24.97 kB / 0.5181 GB, free: 18.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.3077, allocations: 0.5728 MB / 0.5186 GB, free: 17.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002819/0.3105, allocations: 1.342 MB / 0.5199 GB, free: 17.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007312/0.3178, allocations: 3.283 MB / 0.5231 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002735/0.3206, allocations: 2.397 MB / 0.5255 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.3222, allocations: 1.575 MB / 0.527 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.3233, allocations: 1.035 MB / 0.528 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.3246, allocations: 1.199 MB / 0.5292 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003334/0.3249, allocations: 233.1 kB / 0.5294 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006785/0.3317, allocations: 2.345 MB / 0.5317 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005592/0.3323, allocations: 0.5305 MB / 0.5322 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.3337, allocations: 1.137 MB / 0.5333 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009297/0.343, allocations: 4.857 MB / 0.5381 GB, free: 8.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3431, allocations: 0 / 0.5381 GB, free: 8.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3431, allocations: 0 / 0.5381 GB, free: 8.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.148e-05/0.3431, allocations: 0 / 0.5381 GB, free: 8.375 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.004172/0.3473, allocations: 2.672 MB / 0.5407 GB, free: 6.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.3474, allocations: 11.62 kB / 0.5407 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.3491, allocations: 0.4947 MB / 0.5412 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.3505, allocations: 1.186 MB / 0.5423 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.3507, allocations: 202.8 kB / 0.5425 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002489/0.3509, allocations: 194.1 kB / 0.5427 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003169/0.3541, allocations: 2.645 MB / 0.5453 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.3541, allocations: 0 / 0.5453 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.3543, allocations: 78.66 kB / 0.5454 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.3544, allocations: 48 kB / 0.5454 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003523/0.3579, allocations: 3.283 MB / 0.5486 GB, free: 15.78 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.01125/0.3691, allocations: 8.427 MB / 0.5569 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/0.371, allocations: 1.326 MB / 0.5582 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008944/0.3719, allocations: 0.6341 MB / 0.5588 GB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007668/0.3796, allocations: 5.543 MB / 0.5642 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.3796, allocations: 45.88 kB / 0.5642 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007353/0.3804, allocations: 186.2 kB / 0.5644 GB, free: 14.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 2.945e-06/0.3804, allocations: 0 / 0.5644 GB, free: 14.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=115): time 0.02627/0.4066, allocations: 7.168 MB / 0.5714 GB, free: 7.574 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.4067, allocations: 118.5 kB / 0.5715 GB, free: 7.438 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00205/0.4088, allocations: 1.849 MB / 0.5733 GB, free: 5.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.552e-05/0.4089, allocations: 45.7 kB / 0.5734 GB, free: 5.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006374/0.4095, allocations: 1.006 MB / 0.5743 GB, free: 4.496 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.4099, allocations: 422.2 kB / 0.5748 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005888/0.4105, allocations: 417.7 kB / 0.5752 GB, free: 3.664 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.4106, allocations: 301.1 kB / 0.5754 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.4119, allocations: 0.8512 MB / 0.5763 GB, free: 2.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.4136, allocations: 1.59 MB / 0.5778 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002943/0.4166, allocations: 2.338 MB / 0.5801 GB, free: 13.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.4166, allocations: 4 kB / 0.5801 GB, free: 13.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007794/0.4244, allocations: 3.296 MB / 0.5833 GB, free: 10.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.4244, allocations: 16 kB / 0.5833 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/0.4245, allocations: 24 kB / 0.5834 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004672/0.4292, allocations: 1.044 MB / 0.5844 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.4306, allocations: 431.3 kB / 0.5848 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009518/0.4401, allocations: 7.476 MB / 0.5921 GB, free: 1.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.4418, allocations: 94.36 kB / 0.5922 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002482/0.4421, allocations: 120 kB / 0.5923 GB, free: 1.09 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007848/0.4429, allocations: 403.7 kB / 0.5927 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000412/0.4433, allocations: 154.1 kB / 0.5928 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006661/0.45, allocations: 2.183 MB / 0.595 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.45, allocations: 10.62 kB / 0.595 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.45, allocations: 0 / 0.595 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003989/0.4504, allocations: 207.3 kB / 0.5952 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/0.4507, allocations: 27.94 kB / 0.5952 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009342/0.4516, allocations: 31.98 kB / 0.5952 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002649/0.4519, allocations: 115.5 kB / 0.5953 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005312/0.4572, allocations: 2.087 MB / 0.5974 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003219/0.4605, allocations: 2.296 MB / 0.5996 GB, free: 9.57 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000843/0.4613, allocations: 0.5544 MB / 0.6002 GB, free: 9.016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001467/0.4628, allocations: 1.294 MB / 0.6014 GB, free: 7.719 MB / 446.1 MB Notification: Performance of Backend: time 2.91e-07/0.4628, allocations: 0 / 0.6014 GB, free: 7.719 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007121/0.4699, allocations: 3.332 MB / 0.6047 GB, free: 4.395 MB / 446.1 MB Notification: Performance of SimCode: time 0.004794/0.4747, allocations: 3.67 MB / 0.6083 GB, free: 0.793 MB / 446.1 MB Notification: Performance of Templates: time 0.06046/0.5352, allocations: 42.39 MB / 0.6497 GB, free: 6.742 MB / 494.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)