Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001364/0.001364, allocations: 93.06 kB / 19.65 MB, free: 276 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.001494/0.001494, 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 1.012/1.012, allocations: 177.1 MB / 203.4 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.08771/0.08771, allocations: 17.47 MB / 277.4 MB, free: 11.57 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 353.6 MB, free: 9.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.806e-05, allocations: 2.312 kB / 353.6 MB, free: 9.836 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.05154/0.05156, allocations: 30.48 MB / 384 MB, free: 11.47 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.06738, allocations: 13.4 MB / 397.4 MB, free: 14.02 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009224/0.0683, allocations: 27.75 kB / 397.5 MB, free: 14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000761/0.06907, allocations: 361 kB / 397.8 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001482/0.07055, allocations: 0.7948 MB / 398.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003916/0.07446, allocations: 2.139 MB / 400.8 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.07587, allocations: 1.695 MB / 402.5 MB, free: 8.984 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007349/0.07661, allocations: 0.7745 MB / 403.2 MB, free: 8.184 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007885/0.0774, allocations: 1.029 MB / 404.3 MB, free: 7.152 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/0.07804, allocations: 0.6741 MB / 404.9 MB, free: 6.477 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.07821, allocations: 140 kB / 405.1 MB, free: 6.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.08008, allocations: 1.189 MB / 406.3 MB, free: 5.148 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.0803, allocations: 370.8 kB / 406.6 MB, free: 4.785 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.08065, allocations: 0.534 MB / 407.2 MB, free: 4.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.0829, allocations: 2.564 MB / 409.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.0829, allocations: 0 / 409.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.08291, allocations: 0 / 409.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.08293, allocations: 0 / 409.7 MB, free: 1.676 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.1249/0.2079, allocations: 1.888 MB / 411.6 MB, free: 45.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.2079, allocations: 8.812 kB / 411.6 MB, free: 45.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.2092, allocations: 0.6662 MB / 412.3 MB, free: 45.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.2103, allocations: 0.9337 MB / 413.2 MB, free: 45.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.2105, allocations: 198.5 kB / 413.4 MB, free: 44.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.2106, allocations: 115.2 kB / 413.5 MB, free: 44.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.2121, allocations: 1.268 MB / 414.8 MB, free: 44.63 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.2122, allocations: 5.125 kB / 414.8 MB, free: 44.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.964e-05/0.2122, allocations: 50.66 kB / 414.8 MB, free: 44.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.2123, allocations: 30 kB / 414.9 MB, free: 44.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.214, allocations: 1.298 MB / 416.2 MB, free: 44.61 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004525/0.2185, allocations: 4.93 MB / 421.1 MB, free: 42.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008493/0.2194, allocations: 0.5461 MB / 421.6 MB, free: 42.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.2197, allocations: 212.2 kB / 421.9 MB, free: 42.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003182/0.2229, allocations: 2.602 MB / 424.5 MB, free: 41.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.2229, allocations: 44.05 kB / 424.5 MB, free: 41.37 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001282/0.223, allocations: 66.97 kB / 424.6 MB, free: 41.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 1.362e-06/0.223, allocations: 0 / 424.6 MB, free: 41.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007129/0.2237, allocations: 455.4 kB / 425 MB, free: 41.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.2237, allocations: 106.3 kB / 425.1 MB, free: 41.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006216/0.2244, allocations: 1.009 MB / 426.1 MB, free: 40.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.2244, allocations: 29.7 kB / 426.1 MB, free: 40.74 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.2246, allocations: 0.8679 MB / 427 MB, free: 40.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.2247, allocations: 140 kB / 427.2 MB, free: 39.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.2249, allocations: 277.3 kB / 427.4 MB, free: 39.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.225, allocations: 0.5884 MB / 428 MB, free: 39.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.2252, allocations: 145.4 kB / 428.2 MB, free: 39.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/0.2256, allocations: 1.196 MB / 429.4 MB, free: 37.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.2264, allocations: 1.467 MB / 430.8 MB, free: 36.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.2264, allocations: 7 kB / 430.8 MB, free: 36.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00115/0.2275, allocations: 1.151 MB / 432 MB, free: 35.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2276, allocations: 15.62 kB / 432 MB, free: 35.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.2276, allocations: 29.56 kB / 432 MB, free: 35.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003421/0.2279, allocations: 141.9 kB / 432.2 MB, free: 35.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.2285, allocations: 378.9 kB / 432.5 MB, free: 35.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/0.2298, allocations: 5.388 MB / 437.9 MB, free: 30.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.2302, allocations: 74.77 kB / 438 MB, free: 30.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.49e-05/0.2303, allocations: 91.84 kB / 438.1 MB, free: 30.52 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.0001937/0.2305, allocations: 257 kB / 438.3 MB, free: 30.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.2306, allocations: 109.8 kB / 438.4 MB, free: 30.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008306/0.2314, allocations: 0.8131 MB / 439.3 MB, free: 29.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.2314, allocations: 5.125 kB / 439.3 MB, free: 29.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.2314, allocations: 0 / 439.3 MB, free: 29.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2314, allocations: 12.17 kB / 439.3 MB, free: 29.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009443/0.2323, allocations: 1.071 MB / 440.3 MB, free: 29.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2324, allocations: 0 / 440.3 MB, free: 29.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.2325, allocations: 58.62 kB / 440.4 MB, free: 29.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003449/0.2328, allocations: 181.1 kB / 440.6 MB, free: 29.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.2328, allocations: 14.12 kB / 440.6 MB, free: 29.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.2339, allocations: 5.172 MB / 445.8 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2339, allocations: 2.656 kB / 445.8 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.2345, allocations: 0.8657 MB / 446.6 MB, free: 23.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.589e-05/0.2346, allocations: 87.38 kB / 446.7 MB, free: 23.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.637e-05/0.2346, allocations: 8.719 kB / 446.7 MB, free: 23.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.2348, allocations: 6.781 kB / 446.7 MB, free: 23.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.2348, allocations: 44.56 kB / 446.8 MB, free: 23.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.2349, allocations: 16.97 kB / 446.8 MB, free: 23.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000411/0.2353, allocations: 0.6209 MB / 447.4 MB, free: 22.83 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2353, allocations: 0 / 447.4 MB, free: 22.83 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008686/0.2361, allocations: 0.5353 MB / 447.9 MB, free: 22.66 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.0005357/0.2367, allocations: 0.5469 MB / 448.5 MB, free: 22.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007279/0.2374, allocations: 0.5894 MB / 449.1 MB, free: 21.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2374, allocations: 3.844 kB / 449.1 MB, free: 21.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.2376, allocations: 470.6 kB / 449.5 MB, free: 21.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005505/0.2382, allocations: 174.2 kB / 449.7 MB, free: 21.05 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.00188/0.2401, allocations: 1.738 MB / 451.5 MB, free: 19.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.358e-05/0.2402, allocations: 191.2 kB / 451.6 MB, free: 19.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000431/0.2406, allocations: 258.8 kB / 451.9 MB, free: 18.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.2407, allocations: 127.1 kB / 452 MB, free: 18.81 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.2407, allocations: 2.656 kB / 452 MB, free: 18.81 MB / 330.7 MB Notification: Performance of Templates: time 0.01557/0.2563, allocations: 15.58 MB / 467.6 MB, free: 4.344 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.4799945019185543]