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.006204/0.006204, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001428/0.001428, allocations: 190.8 kB / 16.79 MB, free: 5.809 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.391/1.391, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2349/0.2349, allocations: 15.31 MB / 305.9 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 55.91 kB / 370.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 53.62 MB / 423.9 MB, free: 14.77 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.3508/0.454, allocations: 29.46 MB / 453.4 MB, free: 38.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02464/0.4787, allocations: 28.21 MB / 481.6 MB, free: 23.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.4808, allocations: 49 kB / 481.6 MB, free: 23.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001994/0.4828, allocations: 0.6105 MB / 482.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004086/0.4869, allocations: 1.212 MB / 483.4 MB, free: 22.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01239/0.4993, allocations: 3.738 MB / 487.2 MB, free: 20.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003499/0.5029, allocations: 2.136 MB / 489.3 MB, free: 19.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001757/0.5047, allocations: 0.9906 MB / 490.3 MB, free: 18.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00212/0.5068, allocations: 1.004 MB / 491.3 MB, free: 18.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002196/0.509, allocations: 1.108 MB / 492.4 MB, free: 18.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007016/0.5098, allocations: 115.3 kB / 492.5 MB, free: 18.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01021/0.52, allocations: 2.626 MB / 495.2 MB, free: 17.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009327/0.521, allocations: 422.4 kB / 495.6 MB, free: 17.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001452/0.5224, allocations: 0.9294 MB / 496.5 MB, free: 16.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006009/0.5284, allocations: 3.69 MB / 0.4885 GB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5285, allocations: 0 / 0.4885 GB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5285, allocations: 0 / 0.4885 GB, free: 15.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.503e-05/0.5285, allocations: 0 / 0.4885 GB, free: 15.32 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.004655/0.5332, allocations: 2.527 MB / 0.4909 GB, free: 13.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.5333, allocations: 15.38 kB / 0.491 GB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002469/0.5357, allocations: 0.5153 MB / 0.4915 GB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.5378, allocations: 1.193 MB / 0.4926 GB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.538, allocations: 175.4 kB / 0.4928 GB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.5383, allocations: 147.5 kB / 0.4929 GB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003309/0.5416, allocations: 2.019 MB / 0.4949 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.5417, allocations: 3.938 kB / 0.4949 GB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001709/0.5418, allocations: 68 kB / 0.495 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.5419, allocations: 36 kB / 0.495 GB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003928/0.5458, allocations: 2.769 MB / 0.4977 GB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.5559, allocations: 6.611 MB / 0.5042 GB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.5577, allocations: 1.058 MB / 0.5052 GB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007928/0.5585, allocations: 0.557 MB / 0.5057 GB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.57, allocations: 8.436 MB / 0.514 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.5701, allocations: 39 kB / 0.514 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004948/0.5706, allocations: 102.6 kB / 0.5141 GB, free: 8.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 4.469e-06/0.5706, allocations: 0 / 0.5141 GB, free: 8.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.002071/0.5727, allocations: 1.001 MB / 0.5151 GB, free: 7.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.5728, allocations: 111.2 kB / 0.5152 GB, free: 7.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/0.5745, allocations: 1.237 MB / 0.5164 GB, free: 5.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.5746, allocations: 33.7 kB / 0.5164 GB, free: 5.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006516/0.5753, allocations: 0.9706 MB / 0.5174 GB, free: 4.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.5754, allocations: 189.8 kB / 0.5176 GB, free: 4.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004361/0.5759, allocations: 343 kB / 0.5179 GB, free: 4.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.576, allocations: 301.1 kB / 0.5182 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006246/0.5766, allocations: 315.8 kB / 0.5185 GB, free: 3.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.5779, allocations: 1.32 MB / 0.5198 GB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002168/0.5801, allocations: 1.804 MB / 0.5215 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.687e-05/0.5802, allocations: 12 kB / 0.5215 GB, free: 15.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003027/0.5832, allocations: 1.689 MB / 0.5232 GB, free: 13.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.5832, allocations: 20 kB / 0.5232 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/0.5833, allocations: 36 kB / 0.5232 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000671/0.5839, allocations: 174.1 kB / 0.5234 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.5853, allocations: 475.2 kB / 0.5239 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/0.5882, allocations: 3.899 MB / 0.5277 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.5896, allocations: 95.89 kB / 0.5278 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002454/0.5898, allocations: 128 kB / 0.5279 GB, free: 8.828 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.0007884/0.5906, allocations: 373.5 kB / 0.5282 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.591, allocations: 138.2 kB / 0.5284 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/0.5939, allocations: 1.383 MB / 0.5297 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.5939, allocations: 4 kB / 0.5297 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.5939, allocations: 0 / 0.5297 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.5939, allocations: 3.938 kB / 0.5297 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.5968, allocations: 1.518 MB / 0.5312 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.5968, allocations: 4 kB / 0.5312 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.5971, allocations: 76.11 kB / 0.5313 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008192/0.598, allocations: 179.2 kB / 0.5315 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.598, allocations: 24 kB / 0.5315 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002649/0.6007, allocations: 3.75 MB / 0.5352 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.6007, allocations: 7.938 kB / 0.5352 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.6023, allocations: 0.9769 MB / 0.5361 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004582/0.6028, allocations: 199.3 kB / 0.5363 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.6032, allocations: 12.06 kB / 0.5363 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006287/0.6038, allocations: 19.98 kB / 0.5363 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/0.6039, allocations: 39.84 kB / 0.5364 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.481e-05/0.6039, allocations: 19.98 kB / 0.5364 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00155/0.6055, allocations: 0.967 MB / 0.5373 GB, free: 14.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6055, allocations: 0 / 0.5373 GB, free: 14.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003125/0.6086, allocations: 0.8463 MB / 0.5382 GB, free: 13.68 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.002551/0.6112, allocations: 1.037 MB / 0.5392 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.6135, allocations: 0.9007 MB / 0.5401 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.6135, allocations: 0 / 0.5401 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006029/0.6141, allocations: 411.2 kB / 0.5404 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.616, allocations: 231.8 kB / 0.5407 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004511/0.6205, allocations: 2.872 MB / 0.5435 GB, free: 8.145 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008923/0.6214, allocations: 1.185 MB / 0.5446 GB, free: 6.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006709/0.6221, allocations: 304 kB / 0.5449 GB, free: 6.637 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6221, allocations: 0 / 0.5449 GB, free: 6.637 MB / 414.1 MB Notification: Performance of Templates: time 0.05676/0.6789, allocations: 48.6 MB / 0.5924 GB, free: 6.059 MB / 462.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)