Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.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: 101.9 kB / 19.73 MB, free: 2.109 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.001564/0.001564, allocations: 222.5 kB / 23.03 MB, free: 4.906 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.435/1.435, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1363/0.1363, allocations: 23.88 MB / 337.1 MB, free: 11 MB / 270.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.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",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.00206/0.00206, allocations: 59.91 kB / 471.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2873, allocations: 59.86 MB / 0.5193 GB, free: 9.574 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.ElectrochemicalCell): time 0.0756/0.3629, allocations: 29.56 MB / 0.5481 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0362/0.3991, allocations: 25.29 MB / 0.5728 GB, free: 3.113 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.4012, allocations: 35.75 kB / 0.5729 GB, free: 3.078 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.4034, allocations: 0.5891 MB / 0.5735 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007789/0.4112, allocations: 2.165 MB / 0.5756 GB, free: 312 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01211/0.4233, allocations: 3.934 MB / 0.5794 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004942/0.4283, allocations: 2.848 MB / 0.5822 GB, free: 9.488 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002217/0.4305, allocations: 1.369 MB / 0.5835 GB, free: 8.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.4327, allocations: 1.34 MB / 0.5848 GB, free: 6.727 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.4352, allocations: 1.514 MB / 0.5863 GB, free: 5.207 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005544/0.4357, allocations: 264 kB / 0.5866 GB, free: 4.949 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007871/0.4436, allocations: 3.027 MB / 0.5895 GB, free: 1.918 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008625/0.4445, allocations: 0.6114 MB / 0.5901 GB, free: 1.305 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.446, allocations: 1.089 MB / 0.5912 GB, free: 216 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.4588, allocations: 6.186 MB / 0.5972 GB, free: 10 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4588, allocations: 3.938 kB / 0.5972 GB, free: 9.996 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4588, allocations: 0 / 0.5972 GB, free: 9.996 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.765e-05/0.4589, allocations: 0 / 0.5972 GB, free: 9.996 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.006644/0.4655, allocations: 3.088 MB / 0.6002 GB, free: 6.855 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.4656, allocations: 8.031 kB / 0.6003 GB, free: 6.848 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.098e-05/0.4656, allocations: 56.55 kB / 0.6003 GB, free: 6.789 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004036/0.466, allocations: 304.3 kB / 0.6006 GB, free: 6.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002562/0.4686, allocations: 0.5531 MB / 0.6011 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/0.4713, allocations: 1.254 MB / 0.6024 GB, free: 4.633 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.4716, allocations: 275.1 kB / 0.6026 GB, free: 4.336 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004835/0.4721, allocations: 223.9 kB / 0.6028 GB, free: 4.117 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005401/0.4775, allocations: 2.675 MB / 0.6054 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.205e-05/0.4775, allocations: 3.938 kB / 0.6055 GB, free: 1.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.4778, allocations: 92 kB / 0.6055 GB, free: 1.258 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.676e-05/0.4778, allocations: 52 kB / 0.6056 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006373/0.4842, allocations: 3.33 MB / 0.6088 GB, free: 13.87 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.0161/0.5003, allocations: 7.259 MB / 0.6159 GB, free: 6.461 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00289/0.5032, allocations: 1.52 MB / 0.6174 GB, free: 4.938 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.5046, allocations: 0.8469 MB / 0.6182 GB, free: 4.078 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.5151, allocations: 4.297 MB / 0.6224 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.5151, allocations: 43.88 kB / 0.6225 GB, free: 15.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.807e-06/0.5151, allocations: 0 / 0.6225 GB, free: 15.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03281/0.5479, allocations: 8.122 MB / 0.6304 GB, free: 7.527 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.548, allocations: 99.11 kB / 0.6305 GB, free: 7.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/0.5499, allocations: 1.366 MB / 0.6318 GB, free: 6.027 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002753/0.5502, allocations: 57.7 kB / 0.6319 GB, free: 5.965 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000862/0.551, allocations: 1.085 MB / 0.633 GB, free: 4.867 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007717/0.5518, allocations: 0.6585 MB / 0.6336 GB, free: 4.203 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007478/0.5526, allocations: 481.1 kB / 0.6341 GB, free: 3.727 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5527, allocations: 301.1 kB / 0.6343 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.5542, allocations: 0.8171 MB / 0.6351 GB, free: 2.609 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00228/0.5565, allocations: 1.665 MB / 0.6368 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/0.5606, allocations: 2.61 MB / 0.6393 GB, free: 13.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.985e-05/0.5607, allocations: 8 kB / 0.6393 GB, free: 13.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007413/0.5681, allocations: 3.058 MB / 0.6423 GB, free: 10.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.5681, allocations: 16 kB / 0.6423 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.55e-05/0.5682, allocations: 28 kB / 0.6424 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003393/0.5716, allocations: 0.5186 MB / 0.6429 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003829/0.5754, allocations: 0.7997 MB / 0.6436 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009254/0.5846, allocations: 7.604 MB / 0.6511 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.5864, allocations: 99.83 kB / 0.6512 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002727/0.5867, allocations: 144 kB / 0.6513 GB, free: 0.7578 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000875/0.5876, allocations: 453.6 kB / 0.6517 GB, free: 312 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003686/0.5879, allocations: 174.9 kB / 0.6519 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006975/0.5949, allocations: 2.566 MB / 0.6544 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.5949, allocations: 24 kB / 0.6544 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5949, allocations: 0 / 0.6544 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.987e-05/0.5949, allocations: 11.95 kB / 0.6544 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.6052, allocations: 4.458 MB / 0.6588 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/0.6052, allocations: 12 kB / 0.6588 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.6069, allocations: 419.9 kB / 0.6592 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003451/0.6104, allocations: 0.5433 MB / 0.6597 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001733/0.6106, allocations: 83.91 kB / 0.6598 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008636/0.6192, allocations: 7.388 MB / 0.667 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.715e-05/0.6192, allocations: 28 kB / 0.6671 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007436/0.6267, allocations: 3.459 MB / 0.6704 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004024/0.6271, allocations: 178.7 kB / 0.6706 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/0.6273, allocations: 55.98 kB / 0.6707 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.6283, allocations: 48 kB / 0.6707 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003305/0.6287, allocations: 200.6 kB / 0.6709 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/0.6288, allocations: 95.97 kB / 0.671 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001239/0.6301, allocations: 0.9006 MB / 0.6719 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6301, allocations: 0 / 0.6719 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003431/0.6335, allocations: 1.212 MB / 0.673 GB, free: 9.488 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01028/0.6438, allocations: 5.244 MB / 0.6782 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005171/0.6489, allocations: 2.369 MB / 0.6805 GB, free: 1.652 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.568e-05/0.649, allocations: 3.938 kB / 0.6805 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002396/0.6514, allocations: 1.364 MB / 0.6818 GB, free: 240 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.6533, allocations: 349.6 kB / 0.6822 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03211/0.6855, allocations: 17.01 MB / 0.6988 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.6866, allocations: 0.8617 MB / 0.6996 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001638/0.6882, allocations: 466.4 kB / 0.7 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001447/0.6896, allocations: 0.9599 MB / 0.701 GB, free: 11.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.223e-06/0.6896, allocations: 0 / 0.701 GB, free: 11.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3701/1.06, allocations: 60.73 MB / 0.7603 GB, free: 167 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.94/21, allocations: 10.52 kB / 0.7603 GB, free: 167 MB / 0.5606 GB " [Timeout remaining time 639] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.73195750208106] Failed to read output from testmodel.py, exit status != 0: 21.209984867018647 21.226130164 20.763964165 Calling exit ...