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.001563/0.001563, allocations: 113 kB / 16.46 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.001679/0.001679, 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.484/1.484, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.1457/0.1457, allocations: 23.84 MB / 332.7 MB, free: 12.37 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ElectrochemicalCell",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.002269/0.002269, allocations: 67.89 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3095, allocations: 59.81 MB / 0.5135 GB, free: 8.848 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.05176/0.3612, allocations: 31.03 MB / 0.5438 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04027/0.4015, allocations: 28.84 MB / 0.5719 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.4034, allocations: 31.75 kB / 0.572 GB, free: 15.35 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.4057, allocations: 0.6573 MB / 0.5726 GB, free: 14.73 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00741/0.4132, allocations: 2.196 MB / 0.5747 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01353/0.4267, allocations: 3.891 MB / 0.5785 GB, free: 8.609 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006197/0.4329, allocations: 2.848 MB / 0.5813 GB, free: 5.746 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002686/0.4356, allocations: 1.388 MB / 0.5827 GB, free: 4.309 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.4381, allocations: 1.344 MB / 0.584 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.4408, allocations: 1.506 MB / 0.5855 GB, free: 1.449 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007875/0.4416, allocations: 260 kB / 0.5857 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009775/0.4514, allocations: 3.144 MB / 0.5888 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001099/0.4525, allocations: 0.6076 MB / 0.5894 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002292/0.4548, allocations: 1.295 MB / 0.5906 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01507/0.4699, allocations: 6.21 MB / 0.5967 GB, free: 5.902 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.4699, allocations: 0 / 0.5967 GB, free: 5.902 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4699, allocations: 0 / 0.5967 GB, free: 5.902 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001458/0.47, allocations: 3.938 kB / 0.5967 GB, free: 5.898 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.008515/0.4785, allocations: 3.167 MB / 0.5998 GB, free: 2.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.4786, allocations: 8.031 kB / 0.5998 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006335/0.4792, allocations: 304.3 kB / 0.6001 GB, free: 2.344 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002725/0.4819, allocations: 0.5609 MB / 0.6006 GB, free: 1.781 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002846/0.4848, allocations: 1.311 MB / 0.6019 GB, free: 432 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.485, allocations: 227.9 kB / 0.6021 GB, free: 188 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006259/0.4857, allocations: 228 kB / 0.6024 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005735/0.4914, allocations: 2.667 MB / 0.605 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.628e-05/0.4915, allocations: 4 kB / 0.605 GB, free: 13.19 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003509/0.4918, allocations: 88 kB / 0.6051 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.15e-05/0.4919, allocations: 59.98 kB / 0.6051 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006436/0.4983, allocations: 3.302 MB / 0.6083 GB, free: 9.742 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.01723/0.5155, allocations: 8.679 MB / 0.6168 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003322/0.5189, allocations: 1.908 MB / 0.6187 GB, free: 14.71 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.5205, allocations: 0.8546 MB / 0.6195 GB, free: 13.85 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01298/0.5335, allocations: 7.903 MB / 0.6272 GB, free: 5.094 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.051e-05/0.5336, allocations: 55.86 kB / 0.6273 GB, free: 5.031 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.136e-06/0.5336, allocations: 0 / 0.6273 GB, free: 5.031 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03319/0.5667, allocations: 8.254 MB / 0.6353 GB, free: 12.69 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.459e-05/0.5668, allocations: 103.1 kB / 0.6354 GB, free: 12.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001998/0.5688, allocations: 1.362 MB / 0.6368 GB, free: 11.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002486/0.5691, allocations: 53.7 kB / 0.6368 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008547/0.5699, allocations: 1.081 MB / 0.6379 GB, free: 10.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007633/0.5707, allocations: 0.6585 MB / 0.6385 GB, free: 9.371 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009044/0.5716, allocations: 481.1 kB / 0.639 GB, free: 8.895 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.5717, allocations: 301.1 kB / 0.6393 GB, free: 8.598 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.5734, allocations: 0.8132 MB / 0.6401 GB, free: 7.781 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002541/0.5759, allocations: 1.65 MB / 0.6417 GB, free: 5.742 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004468/0.5804, allocations: 2.614 MB / 0.6442 GB, free: 2.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.576e-05/0.5804, allocations: 8 kB / 0.6442 GB, free: 2.742 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.008131/0.5885, allocations: 3.039 MB / 0.6472 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.5886, allocations: 16 kB / 0.6472 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.489e-05/0.5886, allocations: 36.27 kB / 0.6472 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003315/0.5919, allocations: 0.5298 MB / 0.6478 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004242/0.5962, allocations: 0.7958 MB / 0.6485 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.6074, allocations: 8.033 MB / 0.6564 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/0.6095, allocations: 96.36 kB / 0.6565 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000582/0.6101, allocations: 147.9 kB / 0.6566 GB, free: 5.402 MB / 0.4981 GB 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.001409/0.6115, allocations: 463.8 kB / 0.6571 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/0.6122, allocations: 174.9 kB / 0.6572 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007899/0.6201, allocations: 2.563 MB / 0.6597 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.6201, allocations: 24 kB / 0.6598 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.6201, allocations: 0 / 0.6598 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.469e-05/0.6202, allocations: 11.95 kB / 0.6598 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.6319, allocations: 4.774 MB / 0.6644 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.369e-05/0.6319, allocations: 12 kB / 0.6644 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001824/0.6337, allocations: 419.4 kB / 0.6648 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003566/0.6373, allocations: 0.5435 MB / 0.6654 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002898/0.6376, allocations: 83.97 kB / 0.6655 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009735/0.6473, allocations: 7.844 MB / 0.6731 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-05/0.6474, allocations: 15.94 kB / 0.6731 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008376/0.6557, allocations: 3.466 MB / 0.6765 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005434/0.6563, allocations: 251.8 kB / 0.6768 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004304/0.6567, allocations: 52 kB / 0.6768 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.658, allocations: 59.92 kB / 0.6769 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004423/0.6584, allocations: 188.8 kB / 0.677 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/0.6587, allocations: 95.97 kB / 0.6771 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001413/0.6601, allocations: 0.8888 MB / 0.678 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.6601, allocations: 0 / 0.678 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004474/0.6645, allocations: 1.212 MB / 0.6792 GB, free: 13.18 MB / 0.5294 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.01251/0.6771, allocations: 5.231 MB / 0.6843 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006167/0.6832, allocations: 2.353 MB / 0.6866 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.536e-05/0.6832, allocations: 4 kB / 0.6866 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.6862, allocations: 1.376 MB / 0.6879 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/0.6893, allocations: 353.4 kB / 0.6883 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03779/0.727, allocations: 16.96 MB / 0.7048 GB, free: 1.293 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/0.7287, allocations: 1.436 MB / 0.7062 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001971/0.7306, allocations: 466.3 kB / 0.7067 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001833/0.7325, allocations: 0.9639 MB / 0.7076 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of SimCode: time 1.302e-06/0.7325, allocations: 0 / 0.7076 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3799/1.112, allocations: 58.67 MB / 0.7649 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/20.25, allocations: 7.516 kB / 0.7649 GB, free: 156.9 MB / 0.5606 GB " [Timeout remaining time 640] (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 sys.exit(0), Time elapsed: 23.0858085679356] Failed to read output from testmodel.py, exit status != 0: 20.391604303149506 20.408723067 19.935279656 Calling exit ...