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.0008957/0.0008957, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005497/0.005497, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.267/1.267, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1877/0.1877, allocations: 15.27 MB / 306.7 MB, free: 15.71 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00031/0.0003101, allocations: 8 kB / 372.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.264, allocations: 54.62 MB / 426.8 MB, free: 40.39 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02535/0.2894, allocations: 31.26 MB / 458.1 MB, free: 28.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02383/0.3132, allocations: 28.54 MB / 486.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.3153, allocations: 47.62 kB / 486.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.3172, allocations: 0.6143 MB / 487.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005659/0.3228, allocations: 1.985 MB / 489.3 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00957/0.3324, allocations: 3.432 MB / 492.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003552/0.336, allocations: 2.987 MB / 495.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001906/0.3379, allocations: 1.62 MB / 497.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.3394, allocations: 1.308 MB / 498.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001788/0.3412, allocations: 1.514 MB / 0.4884 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002754/0.3415, allocations: 156 kB / 0.4886 GB, free: 10.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008904/0.3504, allocations: 3.032 MB / 0.4915 GB, free: 8.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005317/0.3509, allocations: 0.5404 MB / 0.4921 GB, free: 7.617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.3522, allocations: 1.3 MB / 0.4933 GB, free: 6.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01189/0.3641, allocations: 5.866 MB / 0.499 GB, free: 1.715 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3641, allocations: 0 / 0.499 GB, free: 1.715 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3641, allocations: 3.938 kB / 0.4991 GB, free: 1.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.55e-05/0.3642, allocations: 0 / 0.4991 GB, free: 1.711 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.005773/0.37, allocations: 2.781 MB / 0.5018 GB, free: 14.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.37, allocations: 12.03 kB / 0.5018 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004456/0.3705, allocations: 333.6 kB / 0.5021 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.3727, allocations: 0.5565 MB / 0.5026 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.3746, allocations: 1.345 MB / 0.504 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.3749, allocations: 277.9 kB / 0.5042 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/0.3753, allocations: 243.9 kB / 0.5045 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004431/0.3797, allocations: 3.033 MB / 0.5074 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/0.3798, allocations: 0 / 0.5074 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002384/0.38, allocations: 104 kB / 0.5075 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.17e-05/0.38, allocations: 60 kB / 0.5076 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005125/0.3852, allocations: 3.599 MB / 0.5111 GB, free: 5.133 MB / 382.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.01585/0.401, allocations: 10.41 MB / 0.5213 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.4038, allocations: 2.265 MB / 0.5235 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.4053, allocations: 1.109 MB / 0.5245 GB, free: 6.855 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.4158, allocations: 8.599 MB / 0.5329 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.4159, allocations: 47.88 kB / 0.533 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009818/0.4169, allocations: 262 kB / 0.5332 GB, free: 13.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.799e-06/0.4169, allocations: 0 / 0.5332 GB, free: 13.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.03566/0.4525, allocations: 9.759 MB / 0.5428 GB, free: 3.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.4526, allocations: 128.8 kB / 0.5429 GB, free: 3.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/0.4547, allocations: 1.458 MB / 0.5443 GB, free: 1.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.4549, allocations: 57.7 kB / 0.5444 GB, free: 1.527 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007807/0.4557, allocations: 1.151 MB / 0.5455 GB, free: 368 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006367/0.4563, allocations: 0.6241 MB / 0.5461 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004008/0.4567, allocations: 215.2 kB / 0.5463 GB, free: 15.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.4569, allocations: 305.1 kB / 0.5466 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001861/0.4588, allocations: 0.9423 MB / 0.5475 GB, free: 14.26 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002546/0.4613, allocations: 1.894 MB / 0.5494 GB, free: 11.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00408/0.4654, allocations: 2.992 MB / 0.5523 GB, free: 8.496 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.904e-05/0.4654, allocations: 8 kB / 0.5523 GB, free: 8.488 MB / 430.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01064/0.4761, allocations: 3.92 MB / 0.5561 GB, free: 4.547 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.4761, allocations: 16 kB / 0.5561 GB, free: 4.531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.427e-05/0.4762, allocations: 32 kB / 0.5562 GB, free: 4.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005558/0.4818, allocations: 1.195 MB / 0.5573 GB, free: 3.289 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/0.4837, allocations: 0.585 MB / 0.5579 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009216/0.493, allocations: 6.939 MB / 0.5647 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/0.4949, allocations: 147.7 kB / 0.5648 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002868/0.4952, allocations: 159.9 kB / 0.565 GB, free: 11.03 MB / 446.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.001005/0.4962, allocations: 492.7 kB / 0.5655 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003591/0.4966, allocations: 177.8 kB / 0.5656 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009907/0.5065, allocations: 3.257 MB / 0.5688 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.5065, allocations: 23.98 kB / 0.5688 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.5065, allocations: 8 kB / 0.5688 GB, free: 7.039 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.5066, allocations: 11.91 kB / 0.5688 GB, free: 7.027 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.5192, allocations: 5.448 MB / 0.5742 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.5192, allocations: 4 kB / 0.5742 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.5204, allocations: 303.6 kB / 0.5745 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005159/0.5256, allocations: 1.064 MB / 0.5755 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001619/0.5258, allocations: 75.94 kB / 0.5756 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007693/0.5335, allocations: 6.293 MB / 0.5817 GB, free: 9.301 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5335, allocations: 8.062 kB / 0.5817 GB, free: 9.293 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009974/0.5435, allocations: 4.145 MB / 0.5858 GB, free: 5.086 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004271/0.5439, allocations: 254.7 kB / 0.586 GB, free: 4.816 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003132/0.5443, allocations: 36 kB / 0.586 GB, free: 4.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.5455, allocations: 75.81 kB / 0.5861 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003824/0.5459, allocations: 177.7 kB / 0.5863 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.5461, allocations: 87.88 kB / 0.5864 GB, free: 4.445 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001225/0.5473, allocations: 0.9468 MB / 0.5873 GB, free: 3.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5473, allocations: 0 / 0.5873 GB, free: 3.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003667/0.551, allocations: 1.246 MB / 0.5885 GB, free: 2.254 MB / 462.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.1786/0.7296, allocations: 5.88 MB / 0.5943 GB, free: 130.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004806/0.7344, allocations: 3.042 MB / 0.5972 GB, free: 130.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7344, allocations: 3.219 kB / 0.5972 GB, free: 130.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.7369, allocations: 1.627 MB / 0.5988 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.7391, allocations: 305.7 kB / 0.5991 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/0.7692, allocations: 21.57 MB / 0.6202 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008859/0.7701, allocations: 1.488 MB / 0.6216 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001797/0.772, allocations: 461 kB / 0.6221 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/0.773, allocations: 1.014 MB / 0.6231 GB, free: 116.1 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.773, allocations: 0 / 0.6231 GB, free: 116.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.192/1.965, allocations: 60.89 MB / 0.6825 GB, free: 72.61 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/1.965, allocations: 230.7 kB / 0.6827 GB, free: 72.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.569/5.534, allocations: 64 / 0.6827 GB, free: 72.35 MB / 462.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)