Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00197/0.00197, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.138/0.138, allocations: 23.85 MB / 333.4 MB, free: 1.18 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 72.7 kB / 466.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09501, allocations: 59.83 MB / 0.5142 GB, free: 12.93 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.ClimateChange.MethanElectrosynthesis): time 0.0437/0.1387, allocations: 30.03 MB / 0.5435 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02951/0.1682, allocations: 22.16 MB / 0.5651 GB, free: 8.684 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.1697, allocations: 31.75 kB / 0.5652 GB, free: 8.652 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.1716, allocations: 0.5738 MB / 0.5657 GB, free: 8.074 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00424/0.1759, allocations: 1.354 MB / 0.5671 GB, free: 6.711 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009065/0.1849, allocations: 3.308 MB / 0.5703 GB, free: 3.383 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003691/0.1886, allocations: 2.398 MB / 0.5726 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002064/0.1907, allocations: 1.29 MB / 0.5739 GB, free: 15.63 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001597/0.1923, allocations: 1.063 MB / 0.5749 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002089/0.1944, allocations: 1.222 MB / 0.5761 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006184/0.195, allocations: 232 kB / 0.5763 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007311/0.2023, allocations: 2.375 MB / 0.5787 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008112/0.2031, allocations: 0.5374 MB / 0.5792 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001653/0.2048, allocations: 1.132 MB / 0.5803 GB, free: 9.059 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009949/0.2147, allocations: 5.027 MB / 0.5852 GB, free: 4.012 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.2147, allocations: 4 kB / 0.5852 GB, free: 4.008 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2147, allocations: 4 kB / 0.5852 GB, free: 4.004 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.579e-05/0.2148, allocations: 0 / 0.5852 GB, free: 4.004 MB / 446.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.005516/0.2203, allocations: 2.733 MB / 0.5879 GB, free: 1.211 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.2203, allocations: 12.03 kB / 0.5879 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.715e-05/0.2204, allocations: 47.98 kB / 0.5879 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003511/0.2207, allocations: 278.4 kB / 0.5882 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002066/0.2228, allocations: 0.5067 MB / 0.5887 GB, free: 372 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2234/0.4462, allocations: 1.2 MB / 0.5899 GB, free: 63.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.4464, allocations: 202.5 kB / 0.5901 GB, free: 63.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003549/0.4468, allocations: 191 kB / 0.5902 GB, free: 63.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004163/0.4509, allocations: 2.664 MB / 0.5928 GB, free: 62.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.451, allocations: 1.781 kB / 0.5929 GB, free: 62.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.4511, allocations: 77.09 kB / 0.5929 GB, free: 62.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.287e-05/0.4512, allocations: 46.38 kB / 0.593 GB, free: 62.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004737/0.4559, allocations: 3.291 MB / 0.5962 GB, free: 61.43 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.01163/0.4675, allocations: 8.53 MB / 0.6045 GB, free: 56.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.4694, allocations: 1.261 MB / 0.6057 GB, free: 55.87 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009245/0.4704, allocations: 0.5954 MB / 0.6063 GB, free: 55.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00722/0.4776, allocations: 5.581 MB / 0.6118 GB, free: 51.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.4776, allocations: 46.94 kB / 0.6118 GB, free: 51.08 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008768/0.4785, allocations: 206.1 kB / 0.612 GB, free: 50.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 3.085e-06/0.4785, allocations: 0 / 0.612 GB, free: 50.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.0262/0.5047, allocations: 7.227 MB / 0.6191 GB, free: 47.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.5047, allocations: 115.6 kB / 0.6192 GB, free: 46.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001743/0.5065, allocations: 1.849 MB / 0.621 GB, free: 45.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.5066, allocations: 47.39 kB / 0.621 GB, free: 45.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004177/0.507, allocations: 1.046 MB / 0.6221 GB, free: 44.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002538/0.5073, allocations: 435.6 kB / 0.6225 GB, free: 44.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005073/0.5078, allocations: 418.2 kB / 0.6229 GB, free: 44.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.5078, allocations: 305.1 kB / 0.6232 GB, free: 44.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.5089, allocations: 0.8523 MB / 0.624 GB, free: 43.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.5102, allocations: 1.593 MB / 0.6255 GB, free: 42.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.5126, allocations: 2.335 MB / 0.6278 GB, free: 40.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.5127, allocations: 10.66 kB / 0.6278 GB, free: 40.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007215/0.5199, allocations: 3.285 MB / 0.631 GB, free: 36.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.5199, allocations: 18.81 kB / 0.6311 GB, free: 36.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-05/0.5199, allocations: 24 kB / 0.6311 GB, free: 36.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004409/0.5243, allocations: 1.044 MB / 0.6321 GB, free: 35.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.5257, allocations: 427.3 kB / 0.6325 GB, free: 35.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007974/0.5337, allocations: 7.483 MB / 0.6398 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/0.5355, allocations: 94.5 kB / 0.6399 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.5357, allocations: 120 kB / 0.64 GB, free: 27.27 MB / 446.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.0007724/0.5365, allocations: 407.7 kB / 0.6404 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003328/0.5368, allocations: 151 kB / 0.6406 GB, free: 26.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006041/0.5429, allocations: 2.186 MB / 0.6427 GB, free: 24.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.5429, allocations: 12 kB / 0.6427 GB, free: 24.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5429, allocations: 4 kB / 0.6427 GB, free: 24.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.5429, allocations: 3.984 kB / 0.6427 GB, free: 24.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008386/0.5513, allocations: 3.949 MB / 0.6466 GB, free: 20.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.5513, allocations: 0 / 0.6466 GB, free: 20.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006772/0.552, allocations: 174 kB / 0.6467 GB, free: 20.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00411/0.5561, allocations: 0.9294 MB / 0.6476 GB, free: 19.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/0.5562, allocations: 43.97 kB / 0.6477 GB, free: 19.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006458/0.5627, allocations: 6.766 MB / 0.6543 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5627, allocations: 10.97 kB / 0.6543 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006458/0.5691, allocations: 2.908 MB / 0.6571 GB, free: 9.293 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003877/0.5695, allocations: 214.8 kB / 0.6573 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.5697, allocations: 31.94 kB / 0.6574 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008944/0.5706, allocations: 30.61 kB / 0.6574 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002721/0.5709, allocations: 115.5 kB / 0.6575 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.551e-05/0.571, allocations: 55.91 kB / 0.6576 GB, free: 8.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001108/0.5721, allocations: 1.302 MB / 0.6588 GB, free: 7.539 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5721, allocations: 0 / 0.6588 GB, free: 7.539 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002677/0.5748, allocations: 0.9741 MB / 0.6598 GB, free: 6.562 MB / 446.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.008003/0.5828, allocations: 4.343 MB / 0.664 GB, free: 2.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004069/0.5869, allocations: 2.419 MB / 0.6664 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5869, allocations: 4 kB / 0.6664 GB, free: 15.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.5892, allocations: 1.174 MB / 0.6675 GB, free: 14.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.5907, allocations: 242.5 kB / 0.6678 GB, free: 14.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03139/0.6221, allocations: 16.47 MB / 0.6839 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.6232, allocations: 1.308 MB / 0.6851 GB, free: 11.99 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001116/0.6243, allocations: 335.2 kB / 0.6855 GB, free: 11.76 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.6253, allocations: 0.7531 MB / 0.6862 GB, free: 11 MB / 478.1 MB Notification: Performance of SimCode: time 7.22e-07/0.6253, allocations: 0 / 0.6862 GB, free: 11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/0.7297, allocations: 51.15 MB / 0.7361 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.28/28.01, allocations: 8.047 kB / 0.7362 GB, free: 8.461 MB / 0.5137 GB " [Timeout remaining time 632] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.057092720991932] Failed to read output from testmodel.py, exit status != 0: 28.214570128999185 28.235949246 28.017356756 Calling exit ...