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.001289/0.001289, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001451/0.001451, allocations: 218.1 kB / 23.04 MB, free: 5.074 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.42/1.42, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1363/0.1363, allocations: 23.88 MB / 337.1 MB, free: 11.15 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.002015/0.002015, allocations: 67.89 kB / 472 MB, free: 7.645 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3146, allocations: 59.86 MB / 0.5194 GB, free: 9.613 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.03956/0.3542, allocations: 30.11 MB / 0.5488 GB, free: 9.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02883/0.383, allocations: 22.2 MB / 0.5705 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002186/0.3852, allocations: 27.81 kB / 0.5705 GB, free: 5.438 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.387, allocations: 0.5837 MB / 0.5711 GB, free: 4.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004345/0.3913, allocations: 1.353 MB / 0.5724 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009186/0.4005, allocations: 3.344 MB / 0.5757 GB, free: 468 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003958/0.4045, allocations: 2.399 MB / 0.578 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.4063, allocations: 1.263 MB / 0.5792 GB, free: 12.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.4077, allocations: 1.063 MB / 0.5803 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001933/0.4097, allocations: 1.226 MB / 0.5815 GB, free: 10.44 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004161/0.4101, allocations: 232 kB / 0.5817 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007487/0.4176, allocations: 2.371 MB / 0.584 GB, free: 7.836 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009055/0.4185, allocations: 0.5374 MB / 0.5845 GB, free: 7.297 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001613/0.4201, allocations: 1.136 MB / 0.5856 GB, free: 6.156 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01203/0.4321, allocations: 5.027 MB / 0.5906 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4321, allocations: 0 / 0.5906 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4321, allocations: 0 / 0.5906 GB, free: 1.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.12e-05/0.4322, allocations: 4 kB / 0.5906 GB, free: 1.105 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.005543/0.4377, allocations: 2.664 MB / 0.5932 GB, free: 14.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.4378, allocations: 8.031 kB / 0.5932 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.963e-05/0.4378, allocations: 51.98 kB / 0.5932 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003205/0.4382, allocations: 274.4 kB / 0.5935 GB, free: 14.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/0.4401, allocations: 0.5027 MB / 0.594 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.4423, allocations: 1.132 MB / 0.5951 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.4425, allocations: 258.5 kB / 0.5953 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003965/0.4429, allocations: 188 kB / 0.5955 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004374/0.4473, allocations: 2.694 MB / 0.5981 GB, free: 9.168 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.4474, allocations: 7.938 kB / 0.5981 GB, free: 9.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.4476, allocations: 76 kB / 0.5982 GB, free: 9.086 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.019e-05/0.4476, allocations: 48 kB / 0.5983 GB, free: 9.039 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0051/0.4527, allocations: 3.342 MB / 0.6015 GB, free: 5.691 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.01361/0.4663, allocations: 8.506 MB / 0.6098 GB, free: 12.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.4683, allocations: 1.112 MB / 0.6109 GB, free: 11.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000999/0.4693, allocations: 0.5911 MB / 0.6115 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007805/0.4771, allocations: 3.588 MB / 0.615 GB, free: 7.551 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.4772, allocations: 47.22 kB / 0.615 GB, free: 7.496 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008727/0.478, allocations: 190.8 kB / 0.6152 GB, free: 7.309 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.446e-06/0.478, allocations: 4 kB / 0.6152 GB, free: 7.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02843/0.5065, allocations: 6.921 MB / 0.622 GB, free: 332 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.849e-05/0.5066, allocations: 119.8 kB / 0.6221 GB, free: 188 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/0.509, allocations: 1.892 MB / 0.6239 GB, free: 14.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.5091, allocations: 45.7 kB / 0.624 GB, free: 14.22 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007652/0.5099, allocations: 1.041 MB / 0.625 GB, free: 13.17 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004155/0.5103, allocations: 432.4 kB / 0.6254 GB, free: 12.74 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006557/0.511, allocations: 423.3 kB / 0.6258 GB, free: 12.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.5111, allocations: 305.1 kB / 0.6261 GB, free: 12.02 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.5125, allocations: 0.8746 MB / 0.627 GB, free: 11.14 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002056/0.5146, allocations: 1.608 MB / 0.6285 GB, free: 9.188 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/0.5179, allocations: 2.348 MB / 0.6308 GB, free: 6.504 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.5179, allocations: 8 kB / 0.6308 GB, free: 6.496 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00854/0.5264, allocations: 3.323 MB / 0.6341 GB, free: 3.148 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.5265, allocations: 16 kB / 0.6341 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.066e-05/0.5265, allocations: 24.47 kB / 0.6341 GB, free: 3.109 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004971/0.5315, allocations: 1.046 MB / 0.6351 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.5331, allocations: 431.3 kB / 0.6356 GB, free: 1.625 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.5436, allocations: 7.182 MB / 0.6426 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.5453, allocations: 95.78 kB / 0.6427 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002488/0.5456, allocations: 120 kB / 0.6428 GB, free: 9.859 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.0007942/0.5463, allocations: 409.6 kB / 0.6432 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003968/0.5467, allocations: 147 kB / 0.6433 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006897/0.5536, allocations: 2.187 MB / 0.6454 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.5537, allocations: 12 kB / 0.6454 GB, free: 7.082 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5537, allocations: 4 kB / 0.6455 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.5537, allocations: 3.984 kB / 0.6455 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.5637, allocations: 3.908 MB / 0.6493 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.5637, allocations: 4 kB / 0.6493 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007572/0.5645, allocations: 171.9 kB / 0.6494 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004538/0.569, allocations: 0.9324 MB / 0.6504 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.5691, allocations: 39.97 kB / 0.6504 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008849/0.578, allocations: 6.456 MB / 0.6567 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.578, allocations: 4.031 kB / 0.6567 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007707/0.5857, allocations: 2.903 MB / 0.6595 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003931/0.5861, allocations: 139 kB / 0.6597 GB, free: 8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.5863, allocations: 24 kB / 0.6597 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000923/0.5873, allocations: 39.86 kB / 0.6597 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/0.5876, allocations: 116.8 kB / 0.6598 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.5877, allocations: 51.97 kB / 0.6599 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001656/0.5893, allocations: 1.326 MB / 0.6612 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5893, allocations: 0 / 0.6612 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003011/0.5923, allocations: 0.9703 MB / 0.6621 GB, free: 5.473 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.009718/0.6021, allocations: 4.364 MB / 0.6664 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004988/0.6071, allocations: 2.359 MB / 0.6687 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.6071, allocations: 0 / 0.6687 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002252/0.6093, allocations: 1.102 MB / 0.6698 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.6109, allocations: 239.6 kB / 0.67 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03151/0.6424, allocations: 16.58 MB / 0.6862 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.6435, allocations: 1.306 MB / 0.6875 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001114/0.6446, allocations: 339.4 kB / 0.6878 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/0.6456, allocations: 0.7569 MB / 0.6885 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/0.6456, allocations: 0 / 0.6885 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.299/0.9446, allocations: 52.77 MB / 0.7401 GB, free: 175 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.29/28.23, allocations: 9.297 kB / 0.7401 GB, free: 175 MB / 0.5606 GB " [Timeout remaining time 632] (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 sys.exit(0), Time elapsed: 31.244279507081956] Failed to read output from testmodel.py, exit status != 0: 28.439738346962258 28.452998281 28.017812933 Calling exit ...