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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.07986/0.07986, allocations: 15.29 MB / 31.09 MB, free: 3.102 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 198.7 kB / 36.15 MB, free: 2.137 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 264 MB, free: 4.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 115 kB / 318.4 MB, free: 3.414 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009592/0.0009591, allocations: 50.52 kB / 382.7 MB, free: 48.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07801/0.07898, allocations: 53.62 MB / 436.3 MB, free: 1.016 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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 1.4.0-master/package.mo:4721:7-4721: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.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.03046/0.1095, allocations: 24.86 MB / 461.2 MB, free: 8.246 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01856/0.128, allocations: 18.15 MB / 479.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1293, allocations: 43.69 kB / 479.4 MB, free: 5.988 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.1305, allocations: 429.2 kB / 479.8 MB, free: 5.566 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002149/0.1327, allocations: 0.7762 MB / 480.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006414/0.1391, allocations: 2.451 MB / 483 MB, free: 2.32 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00192/0.141, allocations: 1.602 MB / 484.6 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009824/0.142, allocations: 0.7892 MB / 485.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009025/0.1429, allocations: 0.6854 MB / 486.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.144, allocations: 0.7782 MB / 486.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002537/0.1443, allocations: 92 kB / 487 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00461/0.1489, allocations: 1.719 MB / 488.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003245/0.1492, allocations: 310.9 kB / 489 MB, free: 12.31 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008058/0.15, allocations: 0.6997 MB / 489.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005978/0.156, allocations: 3.238 MB / 492.9 MB, free: 8.355 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.156, allocations: 0 / 492.9 MB, free: 8.355 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.156, allocations: 0 / 492.9 MB, free: 8.355 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.042e-05/0.1561, allocations: 0 / 492.9 MB, free: 8.355 MB / 362.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.003335/0.1594, allocations: 1.922 MB / 494.9 MB, free: 6.379 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1595, allocations: 8.875 kB / 494.9 MB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/0.1608, allocations: 390.2 kB / 495.2 MB, free: 5.988 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001408/0.1623, allocations: 0.9496 MB / 496.2 MB, free: 4.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.1624, allocations: 150.1 kB / 496.3 MB, free: 4.836 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.1626, allocations: 120 kB / 496.5 MB, free: 4.719 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.1647, allocations: 1.645 MB / 498.1 MB, free: 3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1647, allocations: 7.938 kB / 498.1 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.1649, allocations: 51.92 kB / 498.2 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/0.1649, allocations: 32 kB / 498.2 MB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002677/0.1676, allocations: 2.1 MB / 0.4886 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007183/0.1748, allocations: 5.424 MB / 0.4939 GB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.176, allocations: 0.725 MB / 0.4946 GB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/0.1766, allocations: 360.4 kB / 0.4949 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006854/0.1835, allocations: 5.053 MB / 0.4999 GB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.1835, allocations: 42.55 kB / 0.4999 GB, free: 4.391 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003127/0.1838, allocations: 78.91 kB / 0.5 GB, free: 4.312 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 2.434e-06/0.1838, allocations: 0 / 0.5 GB, free: 4.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001305/0.1852, allocations: 0.7512 MB / 0.5007 GB, free: 3.512 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.1852, allocations: 111.1 kB / 0.5008 GB, free: 3.379 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.1865, allocations: 1.195 MB / 0.502 GB, free: 2.168 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.1866, allocations: 33.7 kB / 0.502 GB, free: 2.129 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000496/0.1871, allocations: 0.7722 MB / 0.5028 GB, free: 1.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.742e-05/0.1872, allocations: 134.3 kB / 0.5029 GB, free: 1.211 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000304/0.1875, allocations: 274.5 kB / 0.5032 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1876, allocations: 349.9 kB / 0.5035 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.1881, allocations: 318.5 kB / 0.5038 GB, free: 284 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1754/0.3635, allocations: 1.042 MB / 0.5048 GB, free: 69.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.3648, allocations: 1.397 MB / 0.5062 GB, free: 68.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.3648, allocations: 8.094 kB / 0.5062 GB, free: 68.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001839/0.3667, allocations: 1.44 MB / 0.5076 GB, free: 68.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.3667, allocations: 15.97 kB / 0.5076 GB, free: 68.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/0.3668, allocations: 29.22 kB / 0.5076 GB, free: 68.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005693/0.3673, allocations: 151.8 kB / 0.5078 GB, free: 68.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009787/0.3683, allocations: 377.1 kB / 0.5081 GB, free: 68.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.3702, allocations: 3.873 MB / 0.5119 GB, free: 64.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008283/0.371, allocations: 78.66 kB / 0.512 GB, free: 64.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.3712, allocations: 92.06 kB / 0.5121 GB, free: 64.25 MB / 378.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.0003878/0.3715, allocations: 307.4 kB / 0.5124 GB, free: 64.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.3717, allocations: 103.1 kB / 0.5125 GB, free: 64.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.3733, allocations: 0.8577 MB / 0.5133 GB, free: 63.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.3733, allocations: 3.938 kB / 0.5133 GB, free: 63.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.3733, allocations: 1.625 kB / 0.5133 GB, free: 63.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3733, allocations: 0 / 0.5133 GB, free: 63.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.375, allocations: 1.264 MB / 0.5145 GB, free: 63.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3751, allocations: 3.688 kB / 0.5145 GB, free: 63.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.3753, allocations: 63.77 kB / 0.5146 GB, free: 63.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006743/0.376, allocations: 179.2 kB / 0.5148 GB, free: 63.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.376, allocations: 18.88 kB / 0.5148 GB, free: 63.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.3777, allocations: 3.747 MB / 0.5185 GB, free: 59.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3778, allocations: 2.156 kB / 0.5185 GB, free: 59.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.3803, allocations: 2.654 MB / 0.5211 GB, free: 58.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.3805, allocations: 162.9 kB / 0.5212 GB, free: 58.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3806, allocations: 11.12 kB / 0.5212 GB, free: 58.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.381, allocations: 16.44 kB / 0.5212 GB, free: 58.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.3811, allocations: 40.64 kB / 0.5213 GB, free: 58.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.3811, allocations: 18.41 kB / 0.5213 GB, free: 58.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009891/0.3821, allocations: 0.883 MB / 0.5222 GB, free: 58.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3821, allocations: 0 / 0.5222 GB, free: 58.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00207/0.3842, allocations: 0.7106 MB / 0.5228 GB, free: 58.12 MB / 378.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.001124/0.3853, allocations: 0.7309 MB / 0.5236 GB, free: 58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3869, allocations: 0.7897 MB / 0.5243 GB, free: 57.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.3869, allocations: 1.219 kB / 0.5243 GB, free: 57.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004258/0.3873, allocations: 382.1 kB / 0.5247 GB, free: 57.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000992/0.3883, allocations: 157.4 kB / 0.5248 GB, free: 57.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002625/0.391, allocations: 2.472 MB / 0.5273 GB, free: 56.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.3915, allocations: 1.068 MB / 0.5283 GB, free: 55.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009662/0.3925, allocations: 296.3 kB / 0.5286 GB, free: 55.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.3928, allocations: 139.9 kB / 0.5287 GB, free: 55.57 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3928, allocations: 0 / 0.5287 GB, free: 55.57 MB / 378.7 MB Notification: Performance of Templates: time 0.02453/0.4173, allocations: 18.62 MB / 0.5469 GB, free: 45.62 MB / 378.7 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)