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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 120.3 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 191.7 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 225.6 MB / 248.5 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08633/0.08633, allocations: 15.54 MB / 318.9 MB, free: 13.64 MB / 254.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 64.62 kB / 446.1 MB, free: 47.96 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07771/0.07958, allocations: 56.55 MB / 0.4909 GB, free: 20.66 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.MethanElectrosynthesis): time 0.03272/0.1123, allocations: 29.99 MB / 0.5202 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02873/0.141, allocations: 22.09 MB / 0.5417 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002288/0.1433, allocations: 23.88 kB / 0.5418 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.1452, allocations: 0.5894 MB / 0.5423 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00504/0.1503, allocations: 1.35 MB / 0.5437 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01115/0.1614, allocations: 3.304 MB / 0.5469 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004228/0.1656, allocations: 2.402 MB / 0.5492 GB, free: 11.63 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001857/0.1675, allocations: 1.29 MB / 0.5505 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.1689, allocations: 1.04 MB / 0.5515 GB, free: 9.246 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.1705, allocations: 1.226 MB / 0.5527 GB, free: 8.016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003479/0.1709, allocations: 232 kB / 0.5529 GB, free: 7.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00755/0.1784, allocations: 2.371 MB / 0.5552 GB, free: 5.414 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006737/0.1791, allocations: 0.5413 MB / 0.5558 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001452/0.1806, allocations: 1.136 MB / 0.5569 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01138/0.192, allocations: 4.879 MB / 0.5616 GB, free: 14.83 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.192, allocations: 0 / 0.5616 GB, free: 14.83 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.192, allocations: 0 / 0.5616 GB, free: 14.83 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.202e-05/0.192, allocations: 0 / 0.5616 GB, free: 14.83 MB / 430.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.005393/0.1974, allocations: 2.734 MB / 0.5643 GB, free: 12.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1974, allocations: 8.031 kB / 0.5643 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.1994, allocations: 0.5028 MB / 0.5648 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.2013, allocations: 1.201 MB / 0.566 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/0.2015, allocations: 207.5 kB / 0.5662 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003019/0.2018, allocations: 192 kB / 0.5664 GB, free: 9.875 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004158/0.206, allocations: 2.651 MB / 0.569 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.206, allocations: 7.938 kB / 0.569 GB, free: 7.152 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.2062, allocations: 76 kB / 0.569 GB, free: 7.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.098e-05/0.2063, allocations: 48 kB / 0.5691 GB, free: 7.031 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004977/0.2113, allocations: 3.295 MB / 0.5723 GB, free: 3.73 MB / 430.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.01354/0.2248, allocations: 8.509 MB / 0.5806 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002152/0.2269, allocations: 1.259 MB / 0.5818 GB, free: 9.613 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.2279, allocations: 0.6026 MB / 0.5824 GB, free: 9.004 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008815/0.2368, allocations: 5.571 MB / 0.5879 GB, free: 2.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.2368, allocations: 51.16 kB / 0.5879 GB, free: 2.852 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008563/0.2377, allocations: 202.8 kB / 0.5881 GB, free: 2.652 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 2.735e-06/0.2377, allocations: 0 / 0.5881 GB, free: 2.652 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02746/0.2651, allocations: 7.219 MB / 0.5952 GB, free: 11.31 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.118e-05/0.2652, allocations: 123.7 kB / 0.5953 GB, free: 11.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.2676, allocations: 1.857 MB / 0.5971 GB, free: 9.285 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.2677, allocations: 41.7 kB / 0.5971 GB, free: 9.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008002/0.2685, allocations: 1.045 MB / 0.5981 GB, free: 8.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.269, allocations: 440.4 kB / 0.5986 GB, free: 7.746 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006449/0.2696, allocations: 415.4 kB / 0.599 GB, free: 7.332 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2697, allocations: 301.1 kB / 0.5992 GB, free: 7.035 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.2711, allocations: 0.8551 MB / 0.6001 GB, free: 6.176 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002073/0.2732, allocations: 1.589 MB / 0.6016 GB, free: 4.242 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003335/0.2766, allocations: 2.333 MB / 0.6039 GB, free: 1.574 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/0.2766, allocations: 8 kB / 0.6039 GB, free: 1.566 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.2497/0.5263, allocations: 3.285 MB / 0.6071 GB, free: 97.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.5263, allocations: 15.84 kB / 0.6071 GB, free: 97.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.976e-05/0.5264, allocations: 24 kB / 0.6072 GB, free: 97.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004963/0.5314, allocations: 1.035 MB / 0.6082 GB, free: 97.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.533, allocations: 433.5 kB / 0.6086 GB, free: 97.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008933/0.542, allocations: 7.472 MB / 0.6159 GB, free: 91.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.5437, allocations: 99 kB / 0.616 GB, free: 91.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000297/0.544, allocations: 120.5 kB / 0.6161 GB, free: 91.18 MB / 462.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.0008383/0.5448, allocations: 406.5 kB / 0.6165 GB, free: 90.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003923/0.5452, allocations: 150.2 kB / 0.6166 GB, free: 90.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006599/0.5518, allocations: 2.185 MB / 0.6188 GB, free: 90.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.5518, allocations: 14.84 kB / 0.6188 GB, free: 90.12 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.5518, allocations: 2.875 kB / 0.6188 GB, free: 90.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.5518, allocations: 8.5 kB / 0.6188 GB, free: 90.12 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00894/0.5608, allocations: 3.928 MB / 0.6226 GB, free: 88.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.5608, allocations: 6.328 kB / 0.6226 GB, free: 88.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007436/0.5615, allocations: 170.7 kB / 0.6228 GB, free: 88.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004266/0.5658, allocations: 0.9304 MB / 0.6237 GB, free: 88.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.5659, allocations: 44.53 kB / 0.6237 GB, free: 88.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006623/0.5726, allocations: 6.773 MB / 0.6304 GB, free: 82.35 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5726, allocations: 3 kB / 0.6304 GB, free: 82.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006604/0.5792, allocations: 2.911 MB / 0.6332 GB, free: 80.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004288/0.5796, allocations: 219.4 kB / 0.6334 GB, free: 80.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.5798, allocations: 23.94 kB / 0.6334 GB, free: 80.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008682/0.5807, allocations: 38.33 kB / 0.6335 GB, free: 80.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/0.5809, allocations: 108.1 kB / 0.6336 GB, free: 80.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.003e-05/0.581, allocations: 55.44 kB / 0.6336 GB, free: 80.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001193/0.5822, allocations: 1.297 MB / 0.6349 GB, free: 79.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5822, allocations: 0 / 0.6349 GB, free: 79.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002627/0.5849, allocations: 0.9724 MB / 0.6358 GB, free: 79.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001473/0.5863, allocations: 1.002 MB / 0.6368 GB, free: 79.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004071/0.5904, allocations: 2.417 MB / 0.6392 GB, free: 77.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5904, allocations: 0 / 0.6392 GB, free: 77.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.5922, allocations: 1.175 MB / 0.6403 GB, free: 77.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.5936, allocations: 246.5 kB / 0.6406 GB, free: 76.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.5982, allocations: 3.262 MB / 0.6438 GB, free: 73.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.5987, allocations: 1.31 MB / 0.645 GB, free: 72.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005282/0.5993, allocations: 222.4 kB / 0.6452 GB, free: 72.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5993, allocations: 2.688 kB / 0.6452 GB, free: 72.3 MB / 462.1 MB Notification: Performance of Templates: time 0.04857/0.6478, allocations: 64.9 MB / 0.7086 GB, free: 8.363 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (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) [Timeout 480] [Calling os._exit(0), Time elapsed: 11.090408852091059] Failed to read output from testmodel.py, exit status != 0: 0.8132047399412841 0.665342292 0.47042520499999996 Calling exit ...