Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001305/0.001305, allocations: 101.9 kB / 19.73 MB, free: 2.113 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.001473/0.001473, allocations: 207.6 kB / 23.02 MB, free: 4.926 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1336/0.1336, allocations: 23.9 MB / 337.1 MB, free: 10.94 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_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.001998/0.001998, allocations: 63.91 kB / 472 MB, free: 7.465 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2921, allocations: 59.86 MB / 0.5193 GB, free: 9.52 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.07198/0.3641, allocations: 28.91 MB / 0.5476 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02773/0.3918, allocations: 19.44 MB / 0.5666 GB, free: 9.207 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.3936, allocations: 31.75 kB / 0.5666 GB, free: 9.176 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.3957, allocations: 0.525 MB / 0.5671 GB, free: 8.777 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.4004, allocations: 1.316 MB / 0.5684 GB, free: 7.637 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009491/0.4099, allocations: 3.344 MB / 0.5717 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003923/0.4139, allocations: 2.395 MB / 0.574 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002106/0.416, allocations: 1.27 MB / 0.5752 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.4177, allocations: 1.063 MB / 0.5763 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002296/0.42, allocations: 1.218 MB / 0.5775 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007136/0.4207, allocations: 236 kB / 0.5777 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00686/0.4276, allocations: 2.285 MB / 0.5799 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009149/0.4285, allocations: 0.5374 MB / 0.5804 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001765/0.4303, allocations: 0.9571 MB / 0.5814 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.4405, allocations: 5.011 MB / 0.5863 GB, free: 5.207 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4405, allocations: 0 / 0.5863 GB, free: 5.207 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4405, allocations: 0 / 0.5863 GB, free: 5.207 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.628e-05/0.4406, allocations: 0 / 0.5863 GB, free: 5.207 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.005819/0.4464, allocations: 2.663 MB / 0.5889 GB, free: 2.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.4465, allocations: 8.031 kB / 0.5889 GB, free: 2.492 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.555e-05/0.4465, allocations: 51.98 kB / 0.5889 GB, free: 2.441 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003391/0.4469, allocations: 266.5 kB / 0.5892 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002093/0.449, allocations: 0.5144 MB / 0.5897 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.4512, allocations: 1.129 MB / 0.5908 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/0.4514, allocations: 254.5 kB / 0.591 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003242/0.4517, allocations: 192 kB / 0.5912 GB, free: 32 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004506/0.4562, allocations: 2.719 MB / 0.5939 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.529e-05/0.4563, allocations: 0 / 0.5939 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.4565, allocations: 76 kB / 0.5939 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-05/0.4565, allocations: 51.98 kB / 0.594 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005201/0.4617, allocations: 3.349 MB / 0.5973 GB, free: 9.762 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.01352/0.4752, allocations: 7.523 MB / 0.6046 GB, free: 2.074 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.4773, allocations: 1.112 MB / 0.6057 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.4783, allocations: 0.5911 MB / 0.6063 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008473/0.4868, allocations: 3.389 MB / 0.6096 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/0.4868, allocations: 51.16 kB / 0.6096 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009245/0.4878, allocations: 194.8 kB / 0.6098 GB, free: 12.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.116e-06/0.4878, allocations: 0 / 0.6098 GB, free: 12.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.03019/0.518, allocations: 6.924 MB / 0.6166 GB, free: 5.684 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.518, allocations: 119.8 kB / 0.6167 GB, free: 5.543 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002389/0.5204, allocations: 1.888 MB / 0.6185 GB, free: 3.637 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.5206, allocations: 45.7 kB / 0.6186 GB, free: 3.586 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007793/0.5213, allocations: 1.037 MB / 0.6196 GB, free: 2.535 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.5218, allocations: 436.4 kB / 0.62 GB, free: 2.105 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006716/0.5224, allocations: 419.3 kB / 0.6204 GB, free: 1.688 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.5226, allocations: 309.1 kB / 0.6207 GB, free: 1.383 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.524, allocations: 0.8747 MB / 0.6216 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.526, allocations: 1.604 MB / 0.6231 GB, free: 14.55 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003339/0.5294, allocations: 2.352 MB / 0.6254 GB, free: 11.87 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.74e-05/0.5294, allocations: 11.94 kB / 0.6254 GB, free: 11.86 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008877/0.5383, allocations: 3.323 MB / 0.6287 GB, free: 8.508 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.5383, allocations: 12 kB / 0.6287 GB, free: 8.496 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-05/0.5383, allocations: 24 kB / 0.6287 GB, free: 8.473 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00534/0.5437, allocations: 1.038 MB / 0.6297 GB, free: 7.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/0.5454, allocations: 439.3 kB / 0.6301 GB, free: 6.988 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.5562, allocations: 7.125 MB / 0.6371 GB, free: 15.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.558, allocations: 91.84 kB / 0.6372 GB, free: 15.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002649/0.5582, allocations: 120 kB / 0.6373 GB, free: 15.28 MB / 494.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.0007929/0.559, allocations: 409.6 kB / 0.6377 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003901/0.5594, allocations: 151 kB / 0.6378 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007124/0.5665, allocations: 2.187 MB / 0.64 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.5666, allocations: 12 kB / 0.64 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5666, allocations: 0 / 0.64 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.02e-05/0.5666, allocations: 11.97 kB / 0.64 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/0.5771, allocations: 3.698 MB / 0.6436 GB, free: 8.703 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.5771, allocations: 0 / 0.6436 GB, free: 8.703 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008682/0.578, allocations: 171.8 kB / 0.6438 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004821/0.5828, allocations: 0.9286 MB / 0.6447 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/0.583, allocations: 47.95 kB / 0.6447 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008939/0.5919, allocations: 6.411 MB / 0.651 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.654e-06/0.5919, allocations: 0 / 0.651 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008168/0.6001, allocations: 2.903 MB / 0.6538 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/0.6005, allocations: 151 kB / 0.654 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.6008, allocations: 20 kB / 0.654 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.6018, allocations: 35.98 kB / 0.654 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.6021, allocations: 112.7 kB / 0.6541 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.6023, allocations: 55.97 kB / 0.6542 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00171/0.604, allocations: 1.322 MB / 0.6555 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.604, allocations: 0 / 0.6555 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003246/0.6072, allocations: 0.9703 MB / 0.6564 GB, free: 11.15 MB / 0.4981 GB 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.01031/0.6175, allocations: 4.356 MB / 0.6607 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005077/0.6226, allocations: 2.363 MB / 0.663 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.6226, allocations: 0 / 0.663 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.625, allocations: 1.098 MB / 0.6641 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.6265, allocations: 245.4 kB / 0.6643 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03302/0.6596, allocations: 16.56 MB / 0.6805 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008454/0.6604, allocations: 0.7335 MB / 0.6812 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001227/0.6616, allocations: 343.1 kB / 0.6815 GB, free: 372 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.6627, allocations: 0.7531 MB / 0.6822 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of SimCode: time 1.373e-06/0.6627, allocations: 0 / 0.6822 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3097/0.9724, allocations: 52.48 MB / 0.7335 GB, free: 176.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.88/28.85, allocations: 7.594 kB / 0.7335 GB, free: 176.6 MB / 0.5606 GB " [Timeout remaining time 631] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 31.590807195054367] Failed to read output from testmodel.py, exit status != 0: 29.05922543501947 29.076974408999998 28.632736136 Calling exit ...