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.001222/0.001222, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001476/0.001476, allocations: 218.5 kB / 22.25 MB, free: 5.102 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.373/1.373, allocations: 230.6 MB / 256 MB, free: 7.797 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.1352/0.1352, allocations: 23.92 MB / 336.4 MB, free: 10.91 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",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.00197/0.00197, allocations: 63.91 kB / 471.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.287, allocations: 59.87 MB / 0.5186 GB, free: 9.469 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.06959/0.3566, allocations: 29.16 MB / 0.5471 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02664/0.3833, allocations: 19.46 MB / 0.5661 GB, free: 8.91 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002452/0.3857, allocations: 27.81 kB / 0.5661 GB, free: 8.883 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.3876, allocations: 0.5329 MB / 0.5666 GB, free: 8.477 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004886/0.3925, allocations: 1.318 MB / 0.5679 GB, free: 7.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01052/0.403, allocations: 3.336 MB / 0.5712 GB, free: 3.965 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005213/0.4082, allocations: 2.403 MB / 0.5735 GB, free: 1.547 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.4101, allocations: 1.282 MB / 0.5748 GB, free: 224 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00138/0.4115, allocations: 1.056 MB / 0.5758 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.4133, allocations: 1.226 MB / 0.577 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000338/0.4136, allocations: 232 kB / 0.5772 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005825/0.4195, allocations: 2.278 MB / 0.5795 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006721/0.4201, allocations: 0.5452 MB / 0.58 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.4214, allocations: 0.9571 MB / 0.5809 GB, free: 9.914 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.4316, allocations: 5.011 MB / 0.5858 GB, free: 4.883 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.4316, allocations: 3.938 kB / 0.5858 GB, free: 4.879 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4316, allocations: 0 / 0.5858 GB, free: 4.879 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.961e-05/0.4316, allocations: 0 / 0.5858 GB, free: 4.879 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.005047/0.4367, allocations: 2.655 MB / 0.5884 GB, free: 2.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.4367, allocations: 8.031 kB / 0.5884 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003286/0.4371, allocations: 266.5 kB / 0.5887 GB, free: 1.902 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001922/0.439, allocations: 0.5142 MB / 0.5892 GB, free: 1.387 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002078/0.4411, allocations: 1.133 MB / 0.5903 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.4413, allocations: 262.6 kB / 0.5905 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003028/0.4416, allocations: 188 kB / 0.5907 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00405/0.4456, allocations: 2.712 MB / 0.5934 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/0.4457, allocations: 11.92 kB / 0.5934 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001856/0.4459, allocations: 76 kB / 0.5934 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.981e-05/0.4459, allocations: 52 kB / 0.5935 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004821/0.4507, allocations: 3.307 MB / 0.5967 GB, free: 9.523 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.01293/0.4637, allocations: 7.523 MB / 0.6041 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.4656, allocations: 1.109 MB / 0.6052 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009379/0.4665, allocations: 0.5911 MB / 0.6057 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008009/0.4745, allocations: 3.401 MB / 0.6091 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.4746, allocations: 51.16 kB / 0.6091 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009263/0.4755, allocations: 198.8 kB / 0.6093 GB, free: 12.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.956e-06/0.4755, allocations: 0 / 0.6093 GB, free: 12.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.03053/0.506, allocations: 6.909 MB / 0.616 GB, free: 5.449 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.5061, allocations: 123.9 kB / 0.6162 GB, free: 5.305 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/0.5084, allocations: 1.942 MB / 0.6181 GB, free: 3.344 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001675/0.5086, allocations: 45.7 kB / 0.6181 GB, free: 3.293 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007521/0.5093, allocations: 1.041 MB / 0.6191 GB, free: 2.238 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/0.5097, allocations: 428.4 kB / 0.6195 GB, free: 1.816 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006271/0.5104, allocations: 423.2 kB / 0.6199 GB, free: 1.395 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5105, allocations: 305.1 kB / 0.6202 GB, free: 1.094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.5119, allocations: 0.8707 MB / 0.6211 GB, free: 224 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002103/0.514, allocations: 1.604 MB / 0.6226 GB, free: 14.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003411/0.5174, allocations: 2.352 MB / 0.6249 GB, free: 11.58 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.5174, allocations: 8 kB / 0.6249 GB, free: 11.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009101/0.5265, allocations: 3.335 MB / 0.6282 GB, free: 8.215 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.5266, allocations: 16 kB / 0.6282 GB, free: 8.199 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.707e-05/0.5266, allocations: 28 kB / 0.6282 GB, free: 8.172 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005281/0.5319, allocations: 1.027 MB / 0.6292 GB, free: 7.129 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.5336, allocations: 431.3 kB / 0.6296 GB, free: 6.707 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.5442, allocations: 7.125 MB / 0.6366 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.546, allocations: 103.9 kB / 0.6367 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002294/0.5462, allocations: 116 kB / 0.6368 GB, free: 14.99 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.0008027/0.547, allocations: 416.2 kB / 0.6372 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/0.5474, allocations: 151.1 kB / 0.6374 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007071/0.5544, allocations: 2.179 MB / 0.6395 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.5545, allocations: 15.94 kB / 0.6395 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.5545, allocations: 8 kB / 0.6395 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.5545, allocations: 7.969 kB / 0.6395 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009995/0.5645, allocations: 3.69 MB / 0.6431 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5645, allocations: 4 kB / 0.6431 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007763/0.5653, allocations: 175.9 kB / 0.6433 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0048/0.5701, allocations: 0.9286 MB / 0.6442 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.5702, allocations: 39.97 kB / 0.6442 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008966/0.5792, allocations: 6.42 MB / 0.6505 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5792, allocations: 0 / 0.6505 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007964/0.5872, allocations: 2.9 MB / 0.6533 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/0.5876, allocations: 135 kB / 0.6535 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.5878, allocations: 31.98 kB / 0.6535 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009473/0.5888, allocations: 28 kB / 0.6535 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.5891, allocations: 128.6 kB / 0.6536 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.5892, allocations: 51.97 kB / 0.6537 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001576/0.5907, allocations: 1.326 MB / 0.655 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.5907, allocations: 0 / 0.655 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003304/0.5941, allocations: 0.9741 MB / 0.6559 GB, free: 10.85 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.01025/0.6043, allocations: 4.36 MB / 0.6602 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004965/0.6093, allocations: 2.362 MB / 0.6625 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.6093, allocations: 0 / 0.6625 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002223/0.6115, allocations: 1.099 MB / 0.6636 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.613, allocations: 242.7 kB / 0.6638 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03206/0.6451, allocations: 16.58 MB / 0.68 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008349/0.6459, allocations: 0.7217 MB / 0.6807 GB, free: 412 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001164/0.6471, allocations: 331.5 kB / 0.681 GB, free: 80 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.6482, allocations: 0.757 MB / 0.6818 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of SimCode: time 1.293e-06/0.6482, allocations: 4 kB / 0.6818 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3216/0.9698, allocations: 52.97 MB / 0.7335 GB, free: 178.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.47, allocations: 9.141 kB / 0.7335 GB, free: 178.2 MB / 0.5606 GB " [Timeout remaining time 644] (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: 18.047887104999973] Failed to read output from testmodel.py, exit status != 0: 15.628024336998351 15.646397977 15.211089811 Calling exit ...