Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 118.7 kB / 17.13 MB, free: 5.758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 193.2 kB / 20.08 MB, free: 2.848 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 248.5 MB, free: 3.645 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08708/0.08708, allocations: 15.55 MB / 318.9 MB, free: 13.62 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 70.86 kB / 446.1 MB, free: 47.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08061/0.08244, allocations: 56.56 MB / 0.4909 GB, free: 20.53 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.02995/0.1124, allocations: 27.55 MB / 0.5178 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02181/0.1342, allocations: 18.22 MB / 0.5356 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.1353, allocations: 19.88 kB / 0.5356 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.1366, allocations: 476.5 kB / 0.536 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002351/0.1389, allocations: 0.8418 MB / 0.5369 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006984/0.1459, allocations: 2.814 MB / 0.5396 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002554/0.1485, allocations: 1.626 MB / 0.5412 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/0.1495, allocations: 0.7659 MB / 0.5419 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008558/0.1504, allocations: 0.7089 MB / 0.5426 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.1514, allocations: 0.8211 MB / 0.5434 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.1516, allocations: 143.9 kB / 0.5436 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005006/0.1566, allocations: 1.782 MB / 0.5453 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000467/0.1571, allocations: 358.9 kB / 0.5457 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00088/0.158, allocations: 0.7465 MB / 0.5464 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007372/0.1653, allocations: 3.482 MB / 0.5498 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1654, allocations: 0 / 0.5498 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1654, allocations: 0 / 0.5498 GB, free: 11.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.463e-05/0.1654, allocations: 0 / 0.5498 GB, free: 11.13 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003323/0.1687, allocations: 1.976 MB / 0.5517 GB, free: 9.094 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1687, allocations: 12.03 kB / 0.5517 GB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.1702, allocations: 387.4 kB / 0.5521 GB, free: 8.703 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.172, allocations: 0.9814 MB / 0.5531 GB, free: 7.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.1722, allocations: 158.1 kB / 0.5532 GB, free: 7.512 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.1724, allocations: 116 kB / 0.5533 GB, free: 7.398 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002607/0.175, allocations: 1.645 MB / 0.5549 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/0.175, allocations: 7.938 kB / 0.5549 GB, free: 5.672 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.1751, allocations: 44 kB / 0.555 GB, free: 5.629 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.108e-05/0.1752, allocations: 35.98 kB / 0.555 GB, free: 5.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003211/0.1784, allocations: 2.104 MB / 0.5571 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008414/0.1868, allocations: 5.44 MB / 0.5624 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1881, allocations: 0.6899 MB / 0.563 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005717/0.1887, allocations: 332.4 kB / 0.5634 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007757/0.1964, allocations: 5.036 MB / 0.5683 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.1965, allocations: 42.5 kB / 0.5683 GB, free: 7.137 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003084/0.1968, allocations: 83.2 kB / 0.5684 GB, free: 7.055 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 2.134e-06/0.1968, allocations: 4 kB / 0.5684 GB, free: 7.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.001416/0.1982, allocations: 0.7544 MB / 0.5691 GB, free: 6.246 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.1983, allocations: 110.8 kB / 0.5692 GB, free: 6.113 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/0.1997, allocations: 1.199 MB / 0.5704 GB, free: 4.898 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.1998, allocations: 29.95 kB / 0.5704 GB, free: 4.863 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006075/0.2004, allocations: 0.7984 MB / 0.5712 GB, free: 4.055 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.2005, allocations: 150.9 kB / 0.5714 GB, free: 3.906 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000343/0.2008, allocations: 266.7 kB / 0.5716 GB, free: 3.641 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.201, allocations: 353.9 kB / 0.572 GB, free: 3.289 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005187/0.2015, allocations: 314.5 kB / 0.5723 GB, free: 2.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.2027, allocations: 1.054 MB / 0.5733 GB, free: 1.562 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.2044, allocations: 1.399 MB / 0.5747 GB, free: 15.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.177e-05/0.2044, allocations: 8 kB / 0.5747 GB, free: 15.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002299/0.2067, allocations: 1.436 MB / 0.5761 GB, free: 14.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.2068, allocations: 23.94 kB / 0.5761 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.2068, allocations: 32.03 kB / 0.5761 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005978/0.2074, allocations: 153.5 kB / 0.5763 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.2085, allocations: 371.4 kB / 0.5766 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.2118, allocations: 4.069 MB / 0.5806 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008379/0.2127, allocations: 71.84 kB / 0.5807 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.2128, allocations: 91.98 kB / 0.5807 GB, free: 9.195 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004581/0.2132, allocations: 317.2 kB / 0.5811 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.2134, allocations: 107.3 kB / 0.5812 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.2151, allocations: 0.8593 MB / 0.582 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2151, allocations: 4 kB / 0.582 GB, free: 7.863 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2151, allocations: 7.969 kB / 0.582 GB, free: 7.855 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2151, allocations: 4 kB / 0.582 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/0.2172, allocations: 1.251 MB / 0.5832 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.2172, allocations: 4 kB / 0.5832 GB, free: 6.512 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.2174, allocations: 59.91 kB / 0.5833 GB, free: 6.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007026/0.2181, allocations: 179.2 kB / 0.5835 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/0.2182, allocations: 16 kB / 0.5835 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/0.2213, allocations: 3.951 MB / 0.5873 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.2213, allocations: 3.984 kB / 0.5873 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.2225, allocations: 0.861 MB / 0.5882 GB, free: 1.039 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.2228, allocations: 168.4 kB / 0.5883 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.2229, allocations: 11.95 kB / 0.5884 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.2233, allocations: 12 kB / 0.5884 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.2233, allocations: 39.83 kB / 0.5884 GB, free: 0.793 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.2234, allocations: 16.06 kB / 0.5884 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.2245, allocations: 0.8849 MB / 0.5893 GB, free: 15.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2245, allocations: 0 / 0.5893 GB, free: 15.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001823/0.2263, allocations: 0.6267 MB / 0.5899 GB, free: 15.26 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001219/0.2275, allocations: 0.7351 MB / 0.5906 GB, free: 14.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.2291, allocations: 0.7673 MB / 0.5914 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2291, allocations: 0 / 0.5914 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005299/0.2296, allocations: 388.9 kB / 0.5917 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000964/0.2306, allocations: 169.1 kB / 0.5919 GB, free: 13.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.2335, allocations: 1.889 MB / 0.5937 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007046/0.2342, allocations: 1.059 MB / 0.5948 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/0.2346, allocations: 191.3 kB / 0.595 GB, free: 9.957 MB / 462.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2346, allocations: 0 / 0.595 GB, free: 9.957 MB / 462.1 MB Notification: Performance of Templates: time 0.228/0.4626, allocations: 36.96 MB / 0.631 GB, free: 84.78 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.630469481926411] Failed to read output from testmodel.py, exit status != 0: 0.6259599369950593 0.47736629999999997 0.310036179 Calling exit ...