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.0009049/0.0009049, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 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.000988/0.000988, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 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.9713/0.9713, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.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.08773/0.08773, allocations: 17.38 MB / 277.3 MB, free: 11.66 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.513e-06/1.513e-06, allocations: 0 / 353.4 MB, free: 9.988 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.894e-05/2.045e-05, allocations: 2.312 kB / 353.4 MB, free: 9.984 MB / 282.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.04189/0.04191, allocations: 30.48 MB / 383.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.05358, allocations: 13.4 MB / 397.3 MB, free: 14.18 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006864/0.05427, allocations: 27.75 kB / 397.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000681/0.05495, allocations: 365 kB / 397.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.05639, allocations: 0.7986 MB / 398.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003593/0.05998, allocations: 2.143 MB / 400.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.06163, allocations: 1.691 MB / 402.3 MB, free: 9.129 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007631/0.06239, allocations: 0.7706 MB / 403.1 MB, free: 8.332 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000856/0.06325, allocations: 1.037 MB / 404.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006617/0.06391, allocations: 0.6741 MB / 404.8 MB, free: 6.617 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.06407, allocations: 140 kB / 405 MB, free: 6.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.06599, allocations: 1.193 MB / 406.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.0662, allocations: 366.8 kB / 406.5 MB, free: 4.926 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003807/0.06659, allocations: 0.534 MB / 407 MB, free: 4.391 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002358/0.06894, allocations: 2.556 MB / 409.6 MB, free: 1.824 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.06895, allocations: 0 / 409.6 MB, free: 1.824 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.06895, allocations: 0 / 409.6 MB, free: 1.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.578e-05/0.06898, allocations: 4 kB / 409.6 MB, free: 1.82 MB / 330.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.1425/0.2115, allocations: 1.89 MB / 411.5 MB, free: 45.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2115, allocations: 9.062 kB / 411.5 MB, free: 45.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.213, allocations: 0.6682 MB / 412.2 MB, free: 45.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.2143, allocations: 0.9313 MB / 413.1 MB, free: 45.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.2144, allocations: 200.5 kB / 413.3 MB, free: 44.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.2146, allocations: 118.4 kB / 413.4 MB, free: 44.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.2162, allocations: 1.258 MB / 414.7 MB, free: 44.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.2162, allocations: 1.375 kB / 414.7 MB, free: 44.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-05/0.2163, allocations: 55.47 kB / 414.7 MB, free: 44.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.2163, allocations: 30.25 kB / 414.8 MB, free: 44.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.2181, allocations: 1.3 MB / 416.1 MB, free: 44.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00626/0.2244, allocations: 4.926 MB / 421 MB, free: 42.26 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.2255, allocations: 0.5549 MB / 421.5 MB, free: 42.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.2259, allocations: 211.6 kB / 421.7 MB, free: 42.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004869/0.2308, allocations: 2.599 MB / 424.3 MB, free: 41.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.2308, allocations: 38.8 kB / 424.4 MB, free: 41.41 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002422/0.2311, allocations: 73.25 kB / 424.5 MB, free: 41.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 2.274e-06/0.2311, allocations: 0 / 424.5 MB, free: 41.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001101/0.2322, allocations: 447.7 kB / 424.9 MB, free: 41.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.2322, allocations: 109.9 kB / 425 MB, free: 41.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000997/0.2332, allocations: 1.005 MB / 426 MB, free: 40.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.2332, allocations: 28.45 kB / 426 MB, free: 40.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.2335, allocations: 0.8689 MB / 426.9 MB, free: 40.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.2336, allocations: 143.4 kB / 427 MB, free: 40.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000209/0.2338, allocations: 276.7 kB / 427.3 MB, free: 39.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2339, allocations: 0.5888 MB / 427.9 MB, free: 39.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.2341, allocations: 141.8 kB / 428 MB, free: 39.37 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000479/0.2346, allocations: 1.2 MB / 429.2 MB, free: 37.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008852/0.2355, allocations: 1.463 MB / 430.7 MB, free: 36.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.2355, allocations: 7.562 kB / 430.7 MB, free: 36.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001186/0.2367, allocations: 1.153 MB / 431.9 MB, free: 36.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.2367, allocations: 17.25 kB / 431.9 MB, free: 36.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.2367, allocations: 25.22 kB / 431.9 MB, free: 36.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003688/0.2371, allocations: 150.8 kB / 432 MB, free: 36.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.2377, allocations: 372.3 kB / 432.4 MB, free: 36.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.2391, allocations: 5.391 MB / 437.8 MB, free: 30.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.2395, allocations: 69.83 kB / 437.9 MB, free: 30.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.319e-05/0.2396, allocations: 97.17 kB / 438 MB, free: 30.66 MB / 330.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.000183/0.2398, allocations: 252.8 kB / 438.2 MB, free: 30.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2399, allocations: 116.6 kB / 438.3 MB, free: 30.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008753/0.2408, allocations: 0.8154 MB / 439.1 MB, free: 29.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2408, allocations: 3.875 kB / 439.1 MB, free: 29.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.2408, allocations: 2.125 kB / 439.1 MB, free: 29.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2408, allocations: 6.594 kB / 439.2 MB, free: 29.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000997/0.2418, allocations: 1.065 MB / 440.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2418, allocations: 0 / 440.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.2419, allocations: 66.83 kB / 440.3 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003516/0.2422, allocations: 177 kB / 440.5 MB, free: 29.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.2423, allocations: 15.41 kB / 440.5 MB, free: 29.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.2435, allocations: 5.172 MB / 445.6 MB, free: 24.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.2435, allocations: 6.031 kB / 445.6 MB, free: 24.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.2441, allocations: 0.8642 MB / 446.5 MB, free: 23.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.664e-05/0.2441, allocations: 83.75 kB / 446.6 MB, free: 23.36 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.572e-05/0.2442, allocations: 11.94 kB / 446.6 MB, free: 23.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.2444, allocations: 11.95 kB / 446.6 MB, free: 23.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.2444, allocations: 38 kB / 446.7 MB, free: 23.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.2444, allocations: 19.66 kB / 446.7 MB, free: 23.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004202/0.2449, allocations: 0.6169 MB / 447.3 MB, free: 22.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2449, allocations: 2.625 kB / 447.3 MB, free: 22.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009346/0.2458, allocations: 0.533 MB / 447.8 MB, free: 22.82 MB / 330.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.0005388/0.2463, allocations: 0.5513 MB / 448.4 MB, free: 22.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007149/0.247, allocations: 0.5957 MB / 449 MB, free: 21.9 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.247, allocations: 4 kB / 449 MB, free: 21.9 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.2473, allocations: 470.1 kB / 449.4 MB, free: 21.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.2478, allocations: 169.7 kB / 449.6 MB, free: 21.27 MB / 330.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.2498, allocations: 1.73 MB / 451.3 MB, free: 19.53 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.649e-05/0.2499, allocations: 194.9 kB / 451.5 MB, free: 19.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004208/0.2503, allocations: 260.2 kB / 451.8 MB, free: 19.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.2504, allocations: 133.9 kB / 451.9 MB, free: 19.02 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.2504, allocations: 0 / 451.9 MB, free: 19.02 MB / 330.7 MB Notification: Performance of Templates: time 0.01473/0.2652, allocations: 15.57 MB / 467.5 MB, free: 4.562 MB / 330.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.492055700160563]