Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") translateModel(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001243/0.001243, allocations: 193.3 kB / 16.14 MB, free: 6.703 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.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2413/0.2413, allocations: 15.31 MB / 305.3 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001229, allocations: 68.02 kB / 369.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1059, allocations: 53.61 MB / 423.3 MB, free: 14.8 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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.1-master/package.mo:4740:7-4740: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.StandardLeadAcidPotential): time 0.3885/0.4944, allocations: 28.81 MB / 452.1 MB, free: 38.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02576/0.5202, allocations: 28.21 MB / 480.3 MB, free: 23.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00224/0.5225, allocations: 52.56 kB / 480.3 MB, free: 23.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.525, allocations: 0.6149 MB / 480.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00452/0.5296, allocations: 1.21 MB / 482.2 MB, free: 22.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01439/0.544, allocations: 3.739 MB / 485.9 MB, free: 20.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003431/0.5474, allocations: 2.133 MB / 488 MB, free: 19.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.5491, allocations: 0.9897 MB / 489 MB, free: 19.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.5512, allocations: 1.001 MB / 490 MB, free: 18.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002403/0.5536, allocations: 1.114 MB / 491.1 MB, free: 18.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007775/0.5544, allocations: 111.9 kB / 491.2 MB, free: 18.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01202/0.5665, allocations: 2.622 MB / 493.9 MB, free: 17.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.5679, allocations: 428.9 kB / 494.3 MB, free: 17.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002111/0.57, allocations: 0.9281 MB / 495.2 MB, free: 17.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.5832, allocations: 4.694 MB / 499.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5833, allocations: 0 / 499.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5833, allocations: 0 / 499.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001118/0.5834, allocations: 0 / 499.9 MB, free: 15.09 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.006071/0.5895, allocations: 2.537 MB / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.5895, allocations: 8.125 kB / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002763/0.5923, allocations: 0.5172 MB / 0.4912 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002345/0.5947, allocations: 1.2 MB / 0.4924 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.5949, allocations: 175.8 kB / 0.4925 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004385/0.5953, allocations: 140.2 kB / 0.4927 GB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003893/0.5992, allocations: 2.026 MB / 0.4946 GB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.022e-05/0.5993, allocations: 0 / 0.4946 GB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/0.5995, allocations: 60 kB / 0.4947 GB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.531e-05/0.5995, allocations: 36 kB / 0.4947 GB, free: 11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00409/0.6036, allocations: 2.772 MB / 0.4974 GB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/0.6143, allocations: 6.607 MB / 0.5039 GB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.6161, allocations: 1.059 MB / 0.5049 GB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008431/0.617, allocations: 0.5658 MB / 0.5055 GB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01176/0.6287, allocations: 8.416 MB / 0.5137 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.6288, allocations: 46.92 kB / 0.5137 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005228/0.6293, allocations: 98.59 kB / 0.5138 GB, free: 8.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 3.878e-06/0.6294, allocations: 0 / 0.5138 GB, free: 8.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.00203/0.6314, allocations: 0.9932 MB / 0.5148 GB, free: 7.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.6315, allocations: 123.1 kB / 0.5149 GB, free: 6.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.6332, allocations: 1.241 MB / 0.5161 GB, free: 5.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.6332, allocations: 33.7 kB / 0.5162 GB, free: 5.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006473/0.6339, allocations: 0.9708 MB / 0.5171 GB, free: 4.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.6341, allocations: 189.5 kB / 0.5173 GB, free: 4.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004204/0.6345, allocations: 343 kB / 0.5176 GB, free: 4.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/0.6346, allocations: 301.1 kB / 0.5179 GB, free: 3.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005739/0.6352, allocations: 307.8 kB / 0.5182 GB, free: 3.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.6365, allocations: 1.324 MB / 0.5195 GB, free: 1.688 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.6387, allocations: 1.82 MB / 0.5213 GB, free: 15.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.148e-05/0.6387, allocations: 8 kB / 0.5213 GB, free: 15.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002723/0.6415, allocations: 1.681 MB / 0.5229 GB, free: 13.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.6415, allocations: 24.92 kB / 0.5229 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.373e-05/0.6416, allocations: 39.98 kB / 0.523 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006551/0.6422, allocations: 165.4 kB / 0.5231 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.6435, allocations: 479.2 kB / 0.5236 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002952/0.6465, allocations: 3.887 MB / 0.5274 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.6478, allocations: 99.89 kB / 0.5275 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002029/0.648, allocations: 124 kB / 0.5276 GB, free: 8.523 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.0007496/0.6487, allocations: 381.4 kB / 0.528 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003388/0.6491, allocations: 142.2 kB / 0.5281 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/0.6518, allocations: 1.381 MB / 0.5294 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.6519, allocations: 4 kB / 0.5295 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.6519, allocations: 0 / 0.5295 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.6519, allocations: 11.92 kB / 0.5295 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.6545, allocations: 1.51 MB / 0.5309 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.6546, allocations: 8.062 kB / 0.5309 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003154/0.6549, allocations: 71.89 kB / 0.531 GB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007726/0.6557, allocations: 179.3 kB / 0.5312 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.6557, allocations: 19.92 kB / 0.5312 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002582/0.6583, allocations: 3.75 MB / 0.5349 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6583, allocations: 4.031 kB / 0.5349 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.6598, allocations: 0.9809 MB / 0.5358 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003282/0.6601, allocations: 207.3 kB / 0.536 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.6603, allocations: 8 kB / 0.536 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.6607, allocations: 15.98 kB / 0.536 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.6608, allocations: 43.83 kB / 0.5361 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.6609, allocations: 16 kB / 0.5361 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001268/0.6621, allocations: 0.9631 MB / 0.537 GB, free: 14.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.302e-06/0.6622, allocations: 4 kB / 0.5371 GB, free: 14.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002712/0.6649, allocations: 0.8462 MB / 0.5379 GB, free: 13.37 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * 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.001961/0.6668, allocations: 1.037 MB / 0.5389 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.6688, allocations: 0.9021 MB / 0.5398 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6688, allocations: 0 / 0.5398 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005404/0.6694, allocations: 409.8 kB / 0.5402 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.6709, allocations: 217.8 kB / 0.5404 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003844/0.6747, allocations: 2.833 MB / 0.5431 GB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000748/0.6755, allocations: 1.185 MB / 0.5443 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001539/0.677, allocations: 421.3 kB / 0.5447 GB, free: 6.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003607/0.6774, allocations: 210.8 kB / 0.5449 GB, free: 6.066 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6774, allocations: 0 / 0.5449 GB, free: 6.066 MB / 414.1 MB Notification: Performance of Templates: time 0.04107/0.7185, allocations: 25.3 MB / 0.5696 GB, free: 12.82 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)