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.001753/0.001753, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002056/0.002056, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.542/1.542, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.143/0.143, allocations: 23.86 MB / 333.4 MB, free: 1.207 MB / 254.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.001977/0.001977, allocations: 63.97 kB / 466.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1098, allocations: 59.83 MB / 0.5142 GB, free: 12.96 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.0466/0.1564, allocations: 30.83 MB / 0.5443 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03733/0.1937, allocations: 28.85 MB / 0.5724 GB, free: 1.203 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.1953, allocations: 31.75 kB / 0.5725 GB, free: 1.172 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.1972, allocations: 0.6553 MB / 0.5731 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007624/0.2049, allocations: 2.2 MB / 0.5753 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01101/0.2159, allocations: 3.875 MB / 0.5791 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004358/0.2202, allocations: 2.855 MB / 0.5818 GB, free: 7.527 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.2222, allocations: 1.38 MB / 0.5832 GB, free: 6.098 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.2242, allocations: 1.344 MB / 0.5845 GB, free: 4.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002417/0.2266, allocations: 1.506 MB / 0.586 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000495/0.2271, allocations: 260 kB / 0.5862 GB, free: 2.984 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2599/0.487, allocations: 3.148 MB / 0.5893 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008771/0.4879, allocations: 0.6046 MB / 0.5899 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.4896, allocations: 1.3 MB / 0.5912 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01658/0.5062, allocations: 6.202 MB / 0.5972 GB, free: 25.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.5062, allocations: 0 / 0.5972 GB, free: 25.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.5062, allocations: 1.703 kB / 0.5972 GB, free: 25.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001035/0.5063, allocations: 0.5 kB / 0.5972 GB, free: 25.07 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.009154/0.5154, allocations: 3.171 MB / 0.6003 GB, free: 23.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.5155, allocations: 10.06 kB / 0.6003 GB, free: 23.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001088/0.5156, allocations: 60.36 kB / 0.6004 GB, free: 23.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005409/0.5161, allocations: 304.9 kB / 0.6007 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002761/0.5189, allocations: 0.5502 MB / 0.6012 GB, free: 23.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.5215, allocations: 1.32 MB / 0.6025 GB, free: 23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.5218, allocations: 222.5 kB / 0.6027 GB, free: 22.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004665/0.5223, allocations: 227.4 kB / 0.6029 GB, free: 22.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005668/0.5279, allocations: 2.667 MB / 0.6055 GB, free: 22.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.598e-05/0.528, allocations: 1.344 kB / 0.6055 GB, free: 22.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.5282, allocations: 88.47 kB / 0.6056 GB, free: 22.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.207e-05/0.5282, allocations: 53.66 kB / 0.6057 GB, free: 22.68 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00697/0.5352, allocations: 3.307 MB / 0.6089 GB, free: 22.67 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.01396/0.5492, allocations: 8.696 MB / 0.6174 GB, free: 18.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.5516, allocations: 1.903 MB / 0.6192 GB, free: 17.26 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.5527, allocations: 0.8487 MB / 0.6201 GB, free: 16.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.5631, allocations: 7.908 MB / 0.6278 GB, free: 10.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.5631, allocations: 50.84 kB / 0.6278 GB, free: 10.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=128): time 3.356e-06/0.5631, allocations: 5.656 kB / 0.6279 GB, free: 10.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=181): time 0.02952/0.5926, allocations: 8.248 MB / 0.6359 GB, free: 6.426 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.5927, allocations: 94.45 kB / 0.636 GB, free: 6.328 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.5942, allocations: 1.363 MB / 0.6373 GB, free: 5.516 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002163/0.5944, allocations: 57.7 kB / 0.6374 GB, free: 5.453 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004242/0.5948, allocations: 1.082 MB / 0.6384 GB, free: 4.375 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004092/0.5952, allocations: 0.6588 MB / 0.6391 GB, free: 3.727 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000583/0.5958, allocations: 485 kB / 0.6395 GB, free: 3.246 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.5958, allocations: 301.1 kB / 0.6398 GB, free: 2.949 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.597, allocations: 0.8171 MB / 0.6406 GB, free: 2.129 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.5985, allocations: 1.648 MB / 0.6422 GB, free: 132 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004097/0.6026, allocations: 2.614 MB / 0.6448 GB, free: 13.31 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.929e-05/0.6026, allocations: 8 kB / 0.6448 GB, free: 13.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007158/0.6098, allocations: 3.037 MB / 0.6478 GB, free: 10.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.6098, allocations: 27.31 kB / 0.6478 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.395e-05/0.6099, allocations: 24 kB / 0.6478 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003234/0.6131, allocations: 0.5258 MB / 0.6483 GB, free: 9.867 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004036/0.6171, allocations: 0.7987 MB / 0.6491 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009908/0.627, allocations: 8.04 MB / 0.657 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.6292, allocations: 103.4 kB / 0.6571 GB, free: 468 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003365/0.6295, allocations: 136 kB / 0.6572 GB, free: 332 kB / 462.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.001105/0.6306, allocations: 456.1 kB / 0.6576 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005046/0.6311, allocations: 174.9 kB / 0.6578 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007153/0.6383, allocations: 2.582 MB / 0.6603 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/0.6383, allocations: 16 kB / 0.6603 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.6383, allocations: 6.625 kB / 0.6603 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/0.6383, allocations: 7.969 kB / 0.6603 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.6491, allocations: 4.762 MB / 0.665 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/0.6492, allocations: 12 kB / 0.665 GB, free: 8.352 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/0.6509, allocations: 412.9 kB / 0.6654 GB, free: 7.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003399/0.6543, allocations: 0.5479 MB / 0.6659 GB, free: 7.418 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002246/0.6545, allocations: 79.97 kB / 0.666 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009045/0.6636, allocations: 7.85 MB / 0.6737 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.48e-05/0.6636, allocations: 15.47 kB / 0.6737 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.6712, allocations: 3.463 MB / 0.6771 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006629/0.6718, allocations: 251.9 kB / 0.6773 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002672/0.6721, allocations: 55.98 kB / 0.6774 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.6731, allocations: 48 kB / 0.6774 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003327/0.6734, allocations: 195.7 kB / 0.6776 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.6736, allocations: 95.95 kB / 0.6777 GB, free: 10.72 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001312/0.6749, allocations: 0.8895 MB / 0.6786 GB, free: 9.832 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6749, allocations: 0 / 0.6786 GB, free: 9.832 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005238/0.6802, allocations: 1.219 MB / 0.6797 GB, free: 8.609 MB / 494.1 MB 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.01137/0.6915, allocations: 5.241 MB / 0.6849 GB, free: 3.477 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005631/0.6972, allocations: 2.362 MB / 0.6872 GB, free: 1.219 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.6972, allocations: 2.656 kB / 0.6872 GB, free: 1.219 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00241/0.6996, allocations: 1.368 MB / 0.6885 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002616/0.7022, allocations: 347.6 kB / 0.6888 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03174/0.7339, allocations: 16.95 MB / 0.7054 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.7352, allocations: 1.425 MB / 0.7068 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001672/0.7368, allocations: 470.9 kB / 0.7072 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/0.7384, allocations: 0.9661 MB / 0.7082 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of SimCode: time 7.81e-07/0.7384, allocations: 0 / 0.7082 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1539/0.8923, allocations: 58.71 MB / 0.7655 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.77/19.67, allocations: 11.94 kB / 0.7655 GB, free: 0.5898 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: 22.812106342986226] Failed to read output from testmodel.py, exit status != 0: 19.854844476969447 19.876155261 19.365814624 Calling exit ...