Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.00181/0.00181, allocations: 107.3 kB / 16.45 MB, free: 6.453 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.002097/0.002097, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.402/1.402, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.1278/0.1278, allocations: 23.88 MB / 332.7 MB, free: 12.31 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.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.00196/0.00196, allocations: 70.56 kB / 466.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3074, allocations: 59.83 MB / 0.5136 GB, free: 8.801 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.ElectrochemicalAcetateProduction): time 0.04243/0.3498, allocations: 30.91 MB / 0.5437 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03373/0.3835, allocations: 25.01 MB / 0.5682 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001995/0.3855, allocations: 31.75 kB / 0.5682 GB, free: 2.883 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.3878, allocations: 0.6065 MB / 0.5688 GB, free: 2.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006566/0.3943, allocations: 1.88 MB / 0.5706 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01006/0.4044, allocations: 3.452 MB / 0.574 GB, free: 13.26 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004435/0.4088, allocations: 2.695 MB / 0.5766 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002137/0.411, allocations: 1.461 MB / 0.5781 GB, free: 9.043 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00188/0.4128, allocations: 1.274 MB / 0.5793 GB, free: 7.766 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002303/0.4151, allocations: 1.444 MB / 0.5807 GB, free: 6.316 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007427/0.4159, allocations: 264 kB / 0.581 GB, free: 6.059 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008374/0.4243, allocations: 2.73 MB / 0.5836 GB, free: 3.324 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009315/0.4252, allocations: 0.6076 MB / 0.5842 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.4269, allocations: 1.276 MB / 0.5855 GB, free: 1.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.4394, allocations: 5.72 MB / 0.5911 GB, free: 11.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.4394, allocations: 0 / 0.5911 GB, free: 11.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.4394, allocations: 0 / 0.5911 GB, free: 11.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.402e-05/0.4395, allocations: 0 / 0.5911 GB, free: 11.69 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.00649/0.446, allocations: 3.027 MB / 0.594 GB, free: 8.594 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.446, allocations: 12.03 kB / 0.594 GB, free: 8.582 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004042/0.4464, allocations: 300 kB / 0.5943 GB, free: 8.277 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002182/0.4486, allocations: 0.5181 MB / 0.5948 GB, free: 7.758 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.4511, allocations: 1.291 MB / 0.5961 GB, free: 6.418 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.4514, allocations: 227.8 kB / 0.5963 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005156/0.4519, allocations: 223.9 kB / 0.5965 GB, free: 5.961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.4568, allocations: 2.693 MB / 0.5991 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/0.4568, allocations: 0 / 0.5991 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/0.4571, allocations: 88 kB / 0.5992 GB, free: 3.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/0.4571, allocations: 55.94 kB / 0.5993 GB, free: 3.016 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005224/0.4623, allocations: 3.176 MB / 0.6024 GB, free: 15.84 MB / 462.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.01503/0.4774, allocations: 9.317 MB / 0.6115 GB, free: 6.164 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.48, allocations: 1.774 MB / 0.6132 GB, free: 4.297 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.4814, allocations: 0.8218 MB / 0.614 GB, free: 3.461 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01115/0.4926, allocations: 7.512 MB / 0.6213 GB, free: 11.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.4926, allocations: 47.56 kB / 0.6214 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001047/0.4936, allocations: 238.7 kB / 0.6216 GB, free: 10.91 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 4.478e-06/0.4936, allocations: 0 / 0.6216 GB, free: 10.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.03678/0.5304, allocations: 9.527 MB / 0.6309 GB, free: 1.273 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.5305, allocations: 120.1 kB / 0.631 GB, free: 1.129 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.5324, allocations: 1.345 MB / 0.6323 GB, free: 15.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002655/0.5326, allocations: 49.7 kB / 0.6324 GB, free: 15.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007703/0.5334, allocations: 1.092 MB / 0.6335 GB, free: 14.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005739/0.534, allocations: 0.5889 MB / 0.634 GB, free: 14.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007028/0.5347, allocations: 476.6 kB / 0.6345 GB, free: 13.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5348, allocations: 309 kB / 0.6348 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/0.5362, allocations: 0.848 MB / 0.6356 GB, free: 12.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002177/0.5384, allocations: 1.705 MB / 0.6373 GB, free: 10.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003795/0.5422, allocations: 2.693 MB / 0.6399 GB, free: 7.184 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.645e-05/0.5422, allocations: 11.98 kB / 0.6399 GB, free: 7.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008672/0.5509, allocations: 3.468 MB / 0.6433 GB, free: 3.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/0.5509, allocations: 27.27 kB / 0.6433 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-05/0.551, allocations: 32 kB / 0.6434 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005307/0.5563, allocations: 1.158 MB / 0.6445 GB, free: 2.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.5582, allocations: 0.507 MB / 0.645 GB, free: 1.945 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.5687, allocations: 7.625 MB / 0.6524 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.5705, allocations: 108 kB / 0.6525 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002701/0.5708, allocations: 143.9 kB / 0.6527 GB, free: 9.633 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * 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 {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008915/0.5717, allocations: 448.8 kB / 0.6531 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004251/0.5721, allocations: 170.9 kB / 0.6533 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007929/0.58, allocations: 2.831 MB / 0.656 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/0.58, allocations: 16 kB / 0.656 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.58, allocations: 8 kB / 0.6561 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.061e-05/0.5801, allocations: 7.969 kB / 0.6561 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.5916, allocations: 4.856 MB / 0.6608 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.5916, allocations: 256 / 0.6608 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.5927, allocations: 259.7 kB / 0.6611 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004823/0.5975, allocations: 1.04 MB / 0.6621 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001995/0.5977, allocations: 59.97 kB / 0.6621 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008799/0.6065, allocations: 6.93 MB / 0.6689 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.6065, allocations: 4.031 kB / 0.6689 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008655/0.6152, allocations: 3.662 MB / 0.6725 GB, free: 4.711 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004406/0.6156, allocations: 231.9 kB / 0.6727 GB, free: 4.465 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002273/0.6159, allocations: 32 kB / 0.6727 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.6168, allocations: 51.86 kB / 0.6728 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003779/0.6172, allocations: 149 kB / 0.6729 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.6173, allocations: 67.97 kB / 0.673 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001168/0.6185, allocations: 0.8842 MB / 0.6738 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6185, allocations: 0 / 0.6738 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003407/0.6219, allocations: 1.107 MB / 0.6749 GB, free: 2.172 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * 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,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01097/0.6329, allocations: 5.277 MB / 0.6801 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005332/0.6382, allocations: 2.651 MB / 0.6827 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.6382, allocations: 0 / 0.6827 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002577/0.6408, allocations: 1.395 MB / 0.684 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.6425, allocations: 280 kB / 0.6843 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03276/0.6752, allocations: 17.18 MB / 0.7011 GB, free: 6.039 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.6764, allocations: 1.395 MB / 0.7024 GB, free: 4.609 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001307/0.6777, allocations: 391.6 kB / 0.7028 GB, free: 4.238 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.6789, allocations: 0.8819 MB / 0.7037 GB, free: 3.355 MB / 0.545 GB Notification: Performance of SimCode: time 1.282e-06/0.6789, allocations: 4 kB / 0.7037 GB, free: 3.352 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3074/0.9862, allocations: 57.78 MB / 0.7601 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.01/30.99, allocations: 6.172 kB / 0.7601 GB, free: 164.6 MB / 0.5606 GB " [Timeout remaining time 629] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 33.68095100205392] Failed to read output from testmodel.py, exit status != 0: 31.125393536873162 31.133107071 30.691590313 Calling exit ...