Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001239/0.001239, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002154/0.003392, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001213/0.001213, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001781/0.002994, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9752/0.9752, allocations: 177.2 MB / 189.7 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.111/1.086, allocations: 53.68 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] 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.09559/0.09559, allocations: 17.37 MB / 261.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01772/0.1133, allocations: 6.936 MB / 268.4 MB, free: 6.41 MB / 266.7 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: translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 3.938 kB / 269.8 MB, free: 5.109 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.368e-05, allocations: 6.25 kB / 269.8 MB, free: 5.102 MB / 266.7 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.CheckSubstancesData.StandardElectrochemicalCell2): time 0.1428/0.1428, allocations: 6.837 MB / 276.6 MB, free: 1.566 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.1542, allocations: 13.46 MB / 290.1 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005589/0.1548, allocations: 22.88 kB / 290.1 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006863/0.1555, allocations: 370.1 kB / 290.4 MB, free: 9.883 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.1569, allocations: 0.808 MB / 291.2 MB, free: 9.367 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004179/0.1611, allocations: 2.132 MB / 293.4 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.1625, allocations: 1.68 MB / 295.1 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007047/0.1632, allocations: 0.7806 MB / 295.8 MB, free: 6.715 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008774/0.1641, allocations: 1.186 MB / 297 MB, free: 6.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006453/0.1647, allocations: 0.6992 MB / 297.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.1649, allocations: 138.9 kB / 297.9 MB, free: 5.734 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.1668, allocations: 1.222 MB / 299.1 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001977/0.167, allocations: 267.1 kB / 299.3 MB, free: 4.953 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003401/0.1673, allocations: 435.2 kB / 299.8 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00202/0.1693, allocations: 2.389 MB / 302.2 MB, free: 2.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.095e-05/0.1693, allocations: 0 / 302.2 MB, free: 2.129 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1693, allocations: 0 / 302.2 MB, free: 2.129 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.1693, allocations: 0 / 302.2 MB, free: 2.129 MB / 282.7 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.001792/0.1711, allocations: 2.223 MB / 304.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.1712, allocations: 8.031 kB / 304.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009295/0.1721, allocations: 0.6605 MB / 305 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006898/0.1728, allocations: 0.6294 MB / 305.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.1729, allocations: 201.8 kB / 305.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.173, allocations: 112.4 kB / 306 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009977/0.174, allocations: 1.143 MB / 307.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.174, allocations: 7.875 kB / 307.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.541e-05/0.1741, allocations: 52 kB / 307.2 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.1741, allocations: 32 kB / 307.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009323/0.1751, allocations: 1.001 MB / 308.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003879/0.1789, allocations: 3.807 MB / 312 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.1794, allocations: 0.5118 MB / 312.5 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1796, allocations: 164.5 kB / 312.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00273/0.1823, allocations: 2.251 MB / 314.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.1824, allocations: 34.55 kB / 315 MB, free: 4.965 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001251/0.1825, allocations: 67.41 kB / 315 MB, free: 4.898 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.243e-06/0.1825, allocations: 0 / 315 MB, free: 4.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004698/0.183, allocations: 370.9 kB / 315.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.183, allocations: 106.8 kB / 315.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/0.1835, allocations: 0.9193 MB / 316.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.1836, allocations: 33.7 kB / 316.5 MB, free: 3.414 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/0.184, allocations: 0.7213 MB / 317.2 MB, free: 2.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.166e-05/0.1841, allocations: 142.9 kB / 317.3 MB, free: 2.543 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.1843, allocations: 266.6 kB / 317.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1844, allocations: 414.8 kB / 318 MB, free: 1.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1845, allocations: 113.4 kB / 318.1 MB, free: 1.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.185, allocations: 0.8466 MB / 318.9 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008055/0.1858, allocations: 1.216 MB / 320.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.1858, allocations: 8 kB / 320.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.0007789/0.1866, allocations: 0.883 MB / 321.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1866, allocations: 17.56 kB / 321.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/0.1866, allocations: 34.55 kB / 321.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003296/0.1869, allocations: 153.3 kB / 321.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000666/0.1876, allocations: 439.4 kB / 321.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.1894, allocations: 3.597 MB / 325.3 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.1897, allocations: 76.95 kB / 325.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.6e-05/0.1898, allocations: 79.98 kB / 325.4 MB, free: 9.426 MB / 314.7 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.0001731/0.1899, allocations: 223.8 kB / 325.7 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.19, allocations: 59.94 kB / 325.7 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007689/0.1908, allocations: 0.7259 MB / 326.4 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1908, allocations: 4 kB / 326.4 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.1908, allocations: 3.938 kB / 326.4 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1908, allocations: 7.969 kB / 326.5 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007761/0.1916, allocations: 0.9018 MB / 327.4 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1916, allocations: 8.031 kB / 327.4 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1917, allocations: 79.88 kB / 327.4 MB, free: 7.312 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.1918, allocations: 83.27 kB / 327.5 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000345/0.1921, allocations: 187 kB / 327.7 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.1922, allocations: 12 kB / 327.7 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.1937, allocations: 3.448 MB / 331.2 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1937, allocations: 0 / 331.2 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.1941, allocations: 0.648 MB / 331.8 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.955e-05/0.1942, allocations: 11.98 kB / 331.8 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.1943, allocations: 8 kB / 331.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.1944, allocations: 35.89 kB / 331.9 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1944, allocations: 16 kB / 331.9 MB, free: 2.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003061/0.1947, allocations: 456.3 kB / 332.3 MB, free: 2.113 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1947, allocations: 0 / 332.3 MB, free: 2.113 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008412/0.1955, allocations: 0.5334 MB / 332.9 MB, free: 1.578 MB / 314.7 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.0006223/0.1962, allocations: 0.5649 MB / 333.4 MB, free: 1.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000599/0.1968, allocations: 0.5921 MB / 334 MB, free: 424 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.753e-05/0.1968, allocations: 22.38 kB / 334 MB, free: 404 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.197, allocations: 376.6 kB / 334.4 MB, free: 0 / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008617/0.1979, allocations: 1.285 MB / 335.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008226/0.2061, allocations: 1.743 MB / 337.4 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.2065, allocations: 186.6 kB / 337.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004079/0.2069, allocations: 242.8 kB / 337.9 MB, free: 12.26 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.2072, allocations: 269.2 kB / 338.1 MB, free: 11.99 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.2072, allocations: 4 kB / 338.1 MB, free: 11.99 MB / 330.7 MB Notification: Performance of Templates: time 0.01935/0.2265, allocations: 17.88 MB / 356 MB, free: 10.35 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0940610095858574]