Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.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: "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00645/0.00645, allocations: 104.7 kB / 15.74 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.001352/0.001352, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1939/0.1939, allocations: 15.33 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 55.91 kB / 424.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2396, allocations: 53.61 MB / 478.3 MB, free: 25.68 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.ElectrolysisMethanation): time 0.03437/0.274, allocations: 30.65 MB / 0.4971 GB, free: 4.043 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02985/0.3039, allocations: 28.88 MB / 0.5253 GB, free: 7.047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002065/0.306, allocations: 31.81 kB / 0.5253 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.3079, allocations: 0.6902 MB / 0.526 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007565/0.3154, allocations: 2.242 MB / 0.5282 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01003/0.3255, allocations: 3.953 MB / 0.532 GB, free: 88 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004895/0.3304, allocations: 3.082 MB / 0.535 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002323/0.3328, allocations: 1.975 MB / 0.537 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001767/0.3346, allocations: 1.453 MB / 0.5384 GB, free: 9.516 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002062/0.3366, allocations: 1.651 MB / 0.54 GB, free: 7.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004876/0.3371, allocations: 296 kB / 0.5403 GB, free: 7.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008816/0.346, allocations: 3.14 MB / 0.5433 GB, free: 4.426 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001277/0.3473, allocations: 0.6933 MB / 0.544 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002306/0.3496, allocations: 1.431 MB / 0.5454 GB, free: 2.293 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.3627, allocations: 6.349 MB / 0.5516 GB, free: 11.92 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3627, allocations: 0 / 0.5516 GB, free: 11.92 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3628, allocations: 0 / 0.5516 GB, free: 11.92 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.995e-05/0.3628, allocations: 0 / 0.5516 GB, free: 11.92 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.00591/0.3687, allocations: 3.331 MB / 0.5549 GB, free: 8.527 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3688, allocations: 12.03 kB / 0.5549 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003364/0.3691, allocations: 333.7 kB / 0.5552 GB, free: 8.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00225/0.3714, allocations: 0.5634 MB / 0.5557 GB, free: 7.613 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.3736, allocations: 1.408 MB / 0.5571 GB, free: 6.156 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.3738, allocations: 270 kB / 0.5574 GB, free: 5.871 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003675/0.3742, allocations: 243.9 kB / 0.5576 GB, free: 5.633 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004507/0.3787, allocations: 3.041 MB / 0.5606 GB, free: 2.484 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/0.3788, allocations: 0 / 0.5606 GB, free: 2.484 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.379, allocations: 96 kB / 0.5607 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.345e-05/0.3791, allocations: 63.94 kB / 0.5607 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005549/0.3846, allocations: 3.595 MB / 0.5642 GB, free: 14.73 MB / 446.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.01577/0.4004, allocations: 10.41 MB / 0.5744 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/0.4033, allocations: 2.253 MB / 0.5766 GB, free: 1.562 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.4049, allocations: 1.113 MB / 0.5777 GB, free: 448 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01176/0.4167, allocations: 8.743 MB / 0.5862 GB, free: 6.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.4167, allocations: 51.81 kB / 0.5863 GB, free: 6.781 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001095/0.4178, allocations: 266 kB / 0.5865 GB, free: 6.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 4.098e-06/0.4178, allocations: 0 / 0.5865 GB, free: 6.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.0336/0.4514, allocations: 9.705 MB / 0.596 GB, free: 12.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.4515, allocations: 124.9 kB / 0.5961 GB, free: 12.55 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.4532, allocations: 1.462 MB / 0.5976 GB, free: 11.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.4534, allocations: 61.69 kB / 0.5976 GB, free: 11.01 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006473/0.454, allocations: 1.143 MB / 0.5987 GB, free: 9.848 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000472/0.4545, allocations: 0.6277 MB / 0.5993 GB, free: 9.211 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007111/0.4552, allocations: 0.5168 MB / 0.5998 GB, free: 8.688 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.782e-05/0.4553, allocations: 305.1 kB / 0.6001 GB, free: 8.387 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.4568, allocations: 0.9462 MB / 0.6011 GB, free: 7.438 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002081/0.4589, allocations: 1.89 MB / 0.6029 GB, free: 5.109 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/0.4628, allocations: 2.996 MB / 0.6058 GB, free: 1.68 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.449e-05/0.4629, allocations: 8 kB / 0.6058 GB, free: 1.672 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.2244/0.6872, allocations: 3.9 MB / 0.6097 GB, free: 114.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.6873, allocations: 23.22 kB / 0.6097 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.453e-05/0.6874, allocations: 31.44 kB / 0.6097 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005535/0.693, allocations: 1.177 MB / 0.6109 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002549/0.6955, allocations: 0.583 MB / 0.6114 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009214/0.7048, allocations: 7.502 MB / 0.6187 GB, free: 108.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002063/0.7069, allocations: 115.5 kB / 0.6189 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004277/0.7073, allocations: 162.2 kB / 0.619 GB, free: 108.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * 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 {(3,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,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001279/0.7086, allocations: 485 kB / 0.6195 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/0.7092, allocations: 182.2 kB / 0.6196 GB, free: 108.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009088/0.7183, allocations: 3.252 MB / 0.6228 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.7183, allocations: 21.25 kB / 0.6228 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.7184, allocations: 3.406 kB / 0.6228 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/0.7184, allocations: 11.45 kB / 0.6229 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.7302, allocations: 5.429 MB / 0.6282 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.7302, allocations: 6.312 kB / 0.6282 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.7314, allocations: 303.3 kB / 0.6285 GB, free: 104.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004624/0.7361, allocations: 1.057 MB / 0.6295 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002485/0.7363, allocations: 69.02 kB / 0.6296 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007226/0.7436, allocations: 6.804 MB / 0.6362 GB, free: 98.52 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.7436, allocations: 6.016 kB / 0.6362 GB, free: 98.52 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009739/0.7534, allocations: 4.129 MB / 0.6402 GB, free: 96.16 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004535/0.7539, allocations: 230.9 kB / 0.6405 GB, free: 95.96 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/0.7541, allocations: 40.33 kB / 0.6405 GB, free: 95.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.7552, allocations: 45.17 kB / 0.6405 GB, free: 95.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/0.7555, allocations: 182.7 kB / 0.6407 GB, free: 95.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.7557, allocations: 82.02 kB / 0.6408 GB, free: 95.78 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.7569, allocations: 0.9557 MB / 0.6417 GB, free: 95.25 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.757, allocations: 0 / 0.6417 GB, free: 95.25 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003944/0.7609, allocations: 1.249 MB / 0.6429 GB, free: 95.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * 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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01137/0.7723, allocations: 5.882 MB / 0.6487 GB, free: 91.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00563/0.778, allocations: 3.057 MB / 0.6517 GB, free: 90.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.778, allocations: 0 / 0.6517 GB, free: 90.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002548/0.7806, allocations: 1.63 MB / 0.6533 GB, free: 89.21 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.7824, allocations: 319.8 kB / 0.6536 GB, free: 89.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03171/0.8141, allocations: 19.04 MB / 0.6722 GB, free: 70.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000806/0.815, allocations: 1.487 MB / 0.6736 GB, free: 68.99 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001585/0.8166, allocations: 453.9 kB / 0.674 GB, free: 68.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009872/0.8176, allocations: 1.011 MB / 0.675 GB, free: 67.68 MB / 478.1 MB Notification: Performance of SimCode: time 1.393e-06/0.8176, allocations: 0 / 0.675 GB, free: 67.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08671/0.9043, allocations: 63.83 MB / 0.7374 GB, free: 4.555 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 32.63/33.54, allocations: 4 kB / 0.7374 GB, free: 4.551 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)