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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 91.38 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001548, allocations: 180.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.3 MB / 241 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2448/0.2448, allocations: 15.27 MB / 307.4 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003239, allocations: 8 kB / 372.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2736, allocations: 54.63 MB / 427.4 MB, free: 40.16 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02816/0.3018, allocations: 26.88 MB / 454.3 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.3191, allocations: 17.94 MB / 472.2 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001363/0.3205, allocations: 35.78 kB / 472.2 MB, free: 18.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.3217, allocations: 428.8 kB / 472.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002543/0.3242, allocations: 0.777 MB / 473.4 MB, free: 17.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007343/0.3316, allocations: 2.441 MB / 475.9 MB, free: 16.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002409/0.334, allocations: 1.596 MB / 477.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009195/0.335, allocations: 0.765 MB / 478.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007258/0.3357, allocations: 0.6385 MB / 478.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006695/0.3364, allocations: 0.7525 MB / 479.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.3365, allocations: 79.94 kB / 479.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005126/0.3416, allocations: 1.696 MB / 481.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002746/0.3419, allocations: 291 kB / 481.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006262/0.3426, allocations: 0.6972 MB / 482.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003052/0.3456, allocations: 2.518 MB / 484.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3456, allocations: 0 / 484.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3457, allocations: 0 / 484.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3457, allocations: 0 / 484.9 MB, free: 9.328 MB / 350.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.002336/0.348, allocations: 1.643 MB / 486.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3481, allocations: 8.031 kB / 486.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.3494, allocations: 382.9 kB / 486.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.3507, allocations: 0.9353 MB / 487.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.524e-05/0.3508, allocations: 147.3 kB / 488 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.351, allocations: 124.7 kB / 488.1 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.3531, allocations: 1.646 MB / 489.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.3532, allocations: 4 kB / 489.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.3533, allocations: 48 kB / 489.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.3534, allocations: 28 kB / 489.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00265/0.356, allocations: 2.1 MB / 491.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006822/0.3628, allocations: 5.41 MB / 497.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.3642, allocations: 0.7164 MB / 498.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006132/0.3648, allocations: 359 kB / 498.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007469/0.3723, allocations: 4.942 MB / 0.4916 GB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3723, allocations: 39.12 kB / 0.4916 GB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003211/0.3727, allocations: 82.81 kB / 0.4917 GB, free: 8.207 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.395e-06/0.3727, allocations: 0 / 0.4917 GB, free: 8.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001566/0.3742, allocations: 0.7559 MB / 0.4924 GB, free: 7.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.3743, allocations: 107.6 kB / 0.4925 GB, free: 7.328 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.3759, allocations: 1.198 MB / 0.4937 GB, free: 6.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.3759, allocations: 33.7 kB / 0.4937 GB, free: 6.242 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006062/0.3765, allocations: 0.7708 MB / 0.4945 GB, free: 5.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.3766, allocations: 133.8 kB / 0.4946 GB, free: 5.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.3768, allocations: 101.1 kB / 0.4947 GB, free: 5.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.377, allocations: 353.3 kB / 0.495 GB, free: 4.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005154/0.3775, allocations: 317.6 kB / 0.4953 GB, free: 4.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.3786, allocations: 1.049 MB / 0.4964 GB, free: 3.367 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.3801, allocations: 1.397 MB / 0.4977 GB, free: 1.652 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.3801, allocations: 8 kB / 0.4977 GB, free: 1.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002261/0.3824, allocations: 1.441 MB / 0.4991 GB, free: 328 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.3825, allocations: 24.69 kB / 0.4992 GB, free: 304 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/0.3825, allocations: 27.94 kB / 0.4992 GB, free: 276 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006339/0.3831, allocations: 155 kB / 0.4993 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.3844, allocations: 381.3 kB / 0.4997 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002831/0.3872, allocations: 3.872 MB / 0.5035 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009731/0.3882, allocations: 80.02 kB / 0.5036 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.3884, allocations: 91.98 kB / 0.5036 GB, free: 11.45 MB / 382.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.000546/0.3889, allocations: 325 kB / 0.504 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.3891, allocations: 102.6 kB / 0.5041 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.3909, allocations: 0.8532 MB / 0.5049 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3909, allocations: 7.938 kB / 0.5049 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3909, allocations: 0 / 0.5049 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3909, allocations: 3.984 kB / 0.5049 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.3929, allocations: 1.256 MB / 0.5061 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3929, allocations: 4 kB / 0.5061 GB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.3932, allocations: 55.97 kB / 0.5062 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007882/0.394, allocations: 179.3 kB / 0.5064 GB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.394, allocations: 24 kB / 0.5064 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002657/0.3967, allocations: 3.734 MB / 0.51 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.3967, allocations: 8.156 kB / 0.51 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.398, allocations: 0.8514 MB / 0.5109 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.3983, allocations: 207.7 kB / 0.5111 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.3984, allocations: 8 kB / 0.5111 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.3988, allocations: 20.05 kB / 0.5111 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.618e-05/0.3988, allocations: 35.84 kB / 0.5111 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.3989, allocations: 12 kB / 0.5111 GB, free: 3.219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.4, allocations: 0.8888 MB / 0.512 GB, free: 2.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4, allocations: 0 / 0.512 GB, free: 2.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001896/0.4019, allocations: 0.6122 MB / 0.5126 GB, free: 1.711 MB / 382.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.00126/0.4031, allocations: 0.726 MB / 0.5133 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.4048, allocations: 0.7864 MB / 0.5141 GB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4048, allocations: 0 / 0.5141 GB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005329/0.4054, allocations: 389.9 kB / 0.5145 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.4068, allocations: 175.5 kB / 0.5146 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.4098, allocations: 2.386 MB / 0.5169 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.4105, allocations: 1.063 MB / 0.518 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003936/0.4109, allocations: 195.3 kB / 0.5182 GB, free: 11.9 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4109, allocations: 0 / 0.5182 GB, free: 11.9 MB / 398.1 MB Notification: Performance of Templates: time 0.04484/0.4557, allocations: 36.74 MB / 0.554 GB, free: 7.176 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (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)