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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.0009775/0.0009773, allocations: 99.47 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009269/0.000927, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.203/0.203, allocations: 15.26 MB / 306.2 MB, free: 15.83 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.000356, allocations: 11.98 kB / 371.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3012, allocations: 54.61 MB / 426 MB, free: 40.05 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.00554/0.3068, allocations: 6.581 MB / 432.6 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.3209, allocations: 15.5 MB / 448.1 MB, free: 27.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.3221, allocations: 39.16 kB / 448.1 MB, free: 27.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.3232, allocations: 431.2 kB / 448.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002241/0.3254, allocations: 1.043 MB / 449.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005937/0.3314, allocations: 2.528 MB / 452.1 MB, free: 25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.333, allocations: 1.114 MB / 453.2 MB, free: 24.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007136/0.3338, allocations: 0.7175 MB / 453.9 MB, free: 24.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004814/0.3343, allocations: 0.5384 MB / 454.5 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005794/0.3349, allocations: 0.6965 MB / 455.1 MB, free: 23.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.335, allocations: 76.28 kB / 455.2 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004739/0.3397, allocations: 2.003 MB / 457.2 MB, free: 23.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.34, allocations: 277.7 kB / 457.5 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.3402, allocations: 279.1 kB / 457.8 MB, free: 23.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003268/0.3435, allocations: 2.104 MB / 459.9 MB, free: 22.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.3435, allocations: 0 / 459.9 MB, free: 22.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3435, allocations: 0 / 459.9 MB, free: 22.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.3436, allocations: 0 / 459.9 MB, free: 22.33 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.002546/0.3461, allocations: 1.65 MB / 461.5 MB, free: 21.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3462, allocations: 10.34 kB / 461.5 MB, free: 21.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.3476, allocations: 388 kB / 461.9 MB, free: 21.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.349, allocations: 0.8969 MB / 462.8 MB, free: 20.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00016/0.3492, allocations: 145.1 kB / 463 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.3494, allocations: 113.9 kB / 463.1 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.3517, allocations: 1.642 MB / 464.7 MB, free: 19.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.3518, allocations: 10.12 kB / 464.7 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.3519, allocations: 46.12 kB / 464.8 MB, free: 19.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.783e-05/0.3519, allocations: 38.86 kB / 464.8 MB, free: 19.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.3549, allocations: 2.092 MB / 466.9 MB, free: 19.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008862/0.3638, allocations: 5.399 MB / 472.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.3653, allocations: 0.7281 MB / 473 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006632/0.372, allocations: 4.92 MB / 477.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.372, allocations: 42 kB / 478 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003729/0.3724, allocations: 76.84 kB / 478.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.795e-06/0.3724, allocations: 0 / 478.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001327/0.3737, allocations: 0.7515 MB / 478.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.3738, allocations: 110.3 kB / 478.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.3751, allocations: 1.185 MB / 480.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.3752, allocations: 30.8 kB / 480.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004129/0.3756, allocations: 0.7755 MB / 480.9 MB, free: 9.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.28e-05/0.3757, allocations: 137.9 kB / 481 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.3758, allocations: 24.75 kB / 481.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.081e-05/0.3758, allocations: 357 kB / 481.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004798/0.3763, allocations: 311.5 kB / 481.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007331/0.3771, allocations: 1.04 MB / 482.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.3778, allocations: 484.1 kB / 483.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.3778, allocations: 7.156 kB / 483.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002098/0.3799, allocations: 1.432 MB / 484.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.3799, allocations: 18.69 kB / 484.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/0.38, allocations: 29.45 kB / 484.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006049/0.3806, allocations: 159.8 kB / 484.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3817, allocations: 373.9 kB / 485.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001921/0.3836, allocations: 3.878 MB / 489.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009843/0.3846, allocations: 76.83 kB / 489.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.3848, allocations: 94.48 kB / 489.3 MB, free: 3.117 MB / 350.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004998/0.3853, allocations: 307.5 kB / 489.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.3855, allocations: 106.7 kB / 489.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.3873, allocations: 0.8689 MB / 490.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3873, allocations: 3.547 kB / 490.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3873, allocations: 1.375 kB / 490.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3873, allocations: 2.922 kB / 490.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.3894, allocations: 1.251 MB / 491.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.3894, allocations: 3.188 kB / 491.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.3897, allocations: 58.39 kB / 491.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000738/0.3904, allocations: 177.3 kB / 492 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.202e-05/0.3905, allocations: 17.53 kB / 492.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.393, allocations: 3.741 MB / 495.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.393, allocations: 12.3 kB / 495.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.3944, allocations: 0.9586 MB / 496.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003215/0.3947, allocations: 195.6 kB / 497 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.3949, allocations: 9.125 kB / 497 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000368/0.3952, allocations: 13.2 kB / 497 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.3953, allocations: 45.95 kB / 497 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.3954, allocations: 21.81 kB / 497.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001083/0.3965, allocations: 0.8611 MB / 497.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3965, allocations: 0 / 497.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002337/0.3988, allocations: 0.6122 MB / 498.5 MB, free: 11.22 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00116/0.4, allocations: 0.722 MB / 499.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.4015, allocations: 0.7964 MB / 0.4883 GB, free: 9.707 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4015, allocations: 0 / 0.4883 GB, free: 9.707 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004629/0.402, allocations: 374.6 kB / 0.4887 GB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007334/0.4028, allocations: 147.3 kB / 0.4888 GB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.4055, allocations: 2.26 MB / 0.491 GB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.4062, allocations: 1.079 MB / 0.4921 GB, free: 5.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.4072, allocations: 294.2 kB / 0.4924 GB, free: 5.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.4074, allocations: 147.3 kB / 0.4925 GB, free: 5.348 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4074, allocations: 0 / 0.4925 GB, free: 5.348 MB / 366.1 MB Notification: Performance of Templates: time 0.02882/0.4363, allocations: 17.28 MB / 0.5094 GB, free: 4.141 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: