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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 107.6 kB / 16.45 MB, free: 6.504 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.001911/0.001911, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.422/1.422, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.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.08456/0.08456, allocations: 15.54 MB / 318.2 MB, free: 10.21 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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 67.88 kB / 444.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1047, allocations: 56.54 MB / 0.4897 GB, free: 4.891 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.3949/0.4997, allocations: 31.66 MB / 0.5206 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03252/0.5322, allocations: 28.97 MB / 0.5489 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.5339, allocations: 33.12 kB / 0.549 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00234/0.5363, allocations: 0.6905 MB / 0.5496 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007292/0.5436, allocations: 2.236 MB / 0.5518 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01213/0.5557, allocations: 3.956 MB / 0.5557 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004495/0.5602, allocations: 3.09 MB / 0.5587 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00275/0.5629, allocations: 1.64 MB / 0.5603 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002358/0.5653, allocations: 1.465 MB / 0.5617 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.5683, allocations: 1.683 MB / 0.5634 GB, free: 12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008413/0.5691, allocations: 294.6 kB / 0.5637 GB, free: 12 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0117/0.5808, allocations: 3.178 MB / 0.5668 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.5821, allocations: 0.702 MB / 0.5674 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002912/0.585, allocations: 1.441 MB / 0.5689 GB, free: 9.312 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01819/0.6032, allocations: 6.39 MB / 0.5751 GB, free: 3.637 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.6032, allocations: 0 / 0.5751 GB, free: 3.637 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6032, allocations: 0 / 0.5751 GB, free: 3.637 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001484/0.6034, allocations: 0 / 0.5751 GB, free: 3.637 MB / 414.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.007669/0.611, allocations: 3.406 MB / 0.5784 GB, free: 164 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.6111, allocations: 8.031 kB / 0.5784 GB, free: 156 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004417/0.6115, allocations: 337.7 kB / 0.5787 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002532/0.6141, allocations: 0.5725 MB / 0.5793 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002968/0.617, allocations: 1.42 MB / 0.5807 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002487/0.6173, allocations: 270 kB / 0.581 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004167/0.6177, allocations: 244 kB / 0.5812 GB, free: 13.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005455/0.6232, allocations: 3.053 MB / 0.5842 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/0.6232, allocations: 3.938 kB / 0.5842 GB, free: 10.08 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/0.6234, allocations: 100 kB / 0.5843 GB, free: 9.984 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.151e-05/0.6235, allocations: 56 kB / 0.5843 GB, free: 9.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006022/0.6295, allocations: 3.622 MB / 0.5879 GB, free: 6.305 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.01831/0.6478, allocations: 10.52 MB / 0.5981 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003426/0.6513, allocations: 2.16 MB / 0.6002 GB, free: 9.137 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/0.6531, allocations: 1.02 MB / 0.6012 GB, free: 8.105 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01479/0.6679, allocations: 8.803 MB / 0.6098 GB, free: 14.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/0.6679, allocations: 55.86 kB / 0.6099 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001384/0.6693, allocations: 302.5 kB / 0.6102 GB, free: 14.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 4.759e-06/0.6693, allocations: 4 kB / 0.6102 GB, free: 14.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03726/0.7066, allocations: 9.764 MB / 0.6197 GB, free: 4.199 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.7067, allocations: 124.8 kB / 0.6198 GB, free: 4.051 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/0.7086, allocations: 1.458 MB / 0.6212 GB, free: 2.582 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003165/0.709, allocations: 53.7 kB / 0.6213 GB, free: 2.523 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008907/0.7098, allocations: 1.194 MB / 0.6225 GB, free: 1.316 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007086/0.7106, allocations: 0.6585 MB / 0.6231 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007819/0.7113, allocations: 0.5247 MB / 0.6236 GB, free: 124 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.7115, allocations: 309.1 kB / 0.6239 GB, free: 15.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.7132, allocations: 0.9461 MB / 0.6248 GB, free: 14.87 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/0.7157, allocations: 1.89 MB / 0.6267 GB, free: 12.54 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00448/0.7202, allocations: 3 MB / 0.6296 GB, free: 9.105 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.928e-05/0.7202, allocations: 8 kB / 0.6296 GB, free: 9.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01101/0.7312, allocations: 3.89 MB / 0.6334 GB, free: 5.184 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.7313, allocations: 19.28 kB / 0.6334 GB, free: 5.168 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.854e-05/0.7313, allocations: 36 kB / 0.6335 GB, free: 5.133 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005636/0.737, allocations: 1.171 MB / 0.6346 GB, free: 3.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00228/0.7393, allocations: 0.5889 MB / 0.6352 GB, free: 3.355 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/0.7503, allocations: 7.51 MB / 0.6425 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002099/0.7524, allocations: 107.8 kB / 0.6426 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003597/0.7527, allocations: 168 kB / 0.6428 GB, free: 11.13 MB / 494.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.000971/0.7537, allocations: 484.8 kB / 0.6433 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004711/0.7542, allocations: 186.9 kB / 0.6434 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00984/0.764, allocations: 3.242 MB / 0.6466 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.222e-05/0.7641, allocations: 20 kB / 0.6466 GB, free: 7.164 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.7641, allocations: 7.984 kB / 0.6466 GB, free: 7.156 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.7e-05/0.7641, allocations: 7.969 kB / 0.6466 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.778, allocations: 5.421 MB / 0.6519 GB, free: 1.629 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.778, allocations: 4 kB / 0.6519 GB, free: 1.625 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/0.7793, allocations: 307.6 kB / 0.6522 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005017/0.7843, allocations: 1.048 MB / 0.6532 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002076/0.7845, allocations: 79.89 kB / 0.6533 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009221/0.7937, allocations: 6.804 MB / 0.66 GB, free: 8.938 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/0.7937, allocations: 4.031 kB / 0.66 GB, free: 8.934 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01101/0.8048, allocations: 4.132 MB / 0.664 GB, free: 4.738 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006149/0.8054, allocations: 247.8 kB / 0.6642 GB, free: 4.477 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000305/0.8057, allocations: 36 kB / 0.6643 GB, free: 4.441 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.8068, allocations: 43.98 kB / 0.6643 GB, free: 4.398 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004171/0.8072, allocations: 181.7 kB / 0.6645 GB, free: 4.219 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001912/0.8074, allocations: 83.95 kB / 0.6646 GB, free: 4.137 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.001318/0.8087, allocations: 0.9468 MB / 0.6655 GB, free: 3.191 MB / 0.4982 GB Notification: Performance of sort global known variables: time 9e-08/0.8087, allocations: 0 / 0.6655 GB, free: 3.191 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.004284/0.813, allocations: 1.266 MB / 0.6667 GB, free: 1.922 MB / 0.4982 GB 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.0141/0.8271, allocations: 5.898 MB / 0.6725 GB, free: 11.94 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.006195/0.8333, allocations: 2.913 MB / 0.6753 GB, free: 8.973 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.8333, allocations: 0 / 0.6753 GB, free: 8.973 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003028/0.8363, allocations: 1.532 MB / 0.6768 GB, free: 7.383 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.838, allocations: 311.9 kB / 0.6771 GB, free: 7.086 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03999/0.878, allocations: 19.12 MB / 0.6958 GB, free: 2.719 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/0.8793, allocations: 1.474 MB / 0.6972 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001767/0.8811, allocations: 463 kB / 0.6977 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/0.8826, allocations: 1.009 MB / 0.6987 GB, free: 15.75 MB / 0.5451 GB Notification: Performance of SimCode: time 1.052e-06/0.8826, allocations: 0 / 0.6987 GB, free: 15.75 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3338/1.216, allocations: 64.15 MB / 0.7613 GB, free: 152.9 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.85/35.07, allocations: 6.656 kB / 0.7613 GB, free: 152.8 MB / 0.5451 GB " [Timeout remaining time 625] (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 --stepSize=4e-08 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 37.83206124184653] Failed to read output from testmodel.py, exit status != 0: 35.20146294916049 35.210121167 34.604628116 Calling exit ...