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.001197/0.001197, allocations: 108 kB / 15.6 MB, free: 132 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.001279/0.001279, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.188/1.188, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1665/0.1665, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 63.91 kB / 370.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08556, allocations: 53.6 MB / 423.9 MB, free: 14.34 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.2965/0.3821, allocations: 28.22 MB / 452.2 MB, free: 39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02223/0.4043, allocations: 28.26 MB / 480.4 MB, free: 23.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.4056, allocations: 26.91 kB / 480.4 MB, free: 23.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.4071, allocations: 0.6714 MB / 481.1 MB, free: 23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003119/0.4102, allocations: 1.316 MB / 482.4 MB, free: 22.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01023/0.4205, allocations: 4.257 MB / 486.7 MB, free: 19.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002787/0.4233, allocations: 2.182 MB / 488.9 MB, free: 18.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.4245, allocations: 1.148 MB / 490 MB, free: 18.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.4255, allocations: 1.013 MB / 491 MB, free: 17.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.4266, allocations: 1.122 MB / 492.2 MB, free: 17.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002933/0.4269, allocations: 177.6 kB / 492.3 MB, free: 17.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008359/0.4353, allocations: 2.669 MB / 495 MB, free: 16.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000553/0.4358, allocations: 485.3 kB / 495.5 MB, free: 16.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0011/0.437, allocations: 0.9791 MB / 496.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.4472, allocations: 4.997 MB / 0.4897 GB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4472, allocations: 0 / 0.4897 GB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.4472, allocations: 4 kB / 0.4897 GB, free: 13.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.324e-05/0.4473, allocations: 0 / 0.4897 GB, free: 13.56 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.003751/0.451, allocations: 2.538 MB / 0.4922 GB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.4511, allocations: 7.281 kB / 0.4922 GB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001928/0.453, allocations: 0.5184 MB / 0.4927 GB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.4546, allocations: 1.195 MB / 0.4939 GB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.4547, allocations: 169.8 kB / 0.494 GB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.4549, allocations: 144 kB / 0.4942 GB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002903/0.4578, allocations: 2.021 MB / 0.4961 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.929e-05/0.4579, allocations: 8.984 kB / 0.4961 GB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001522/0.458, allocations: 56 kB / 0.4962 GB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.458, allocations: 36 kB / 0.4962 GB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003268/0.4613, allocations: 2.78 MB / 0.4989 GB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008223/0.4695, allocations: 6.6 MB / 0.5054 GB, free: 1.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.471, allocations: 1.06 MB / 0.5064 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007086/0.4718, allocations: 0.5617 MB / 0.507 GB, free: 372 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.482, allocations: 8.408 MB / 0.5152 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.482, allocations: 42.94 kB / 0.5152 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003729/0.4824, allocations: 102.6 kB / 0.5153 GB, free: 6.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.975e-06/0.4824, allocations: 0 / 0.5153 GB, free: 6.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001829/0.4843, allocations: 0.9932 MB / 0.5163 GB, free: 5.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.4844, allocations: 123.4 kB / 0.5164 GB, free: 5.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.4858, allocations: 1.237 MB / 0.5176 GB, free: 4.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.4859, allocations: 33.7 kB / 0.5176 GB, free: 4.305 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006068/0.4865, allocations: 0.9589 MB / 0.5186 GB, free: 3.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.4867, allocations: 193.5 kB / 0.5188 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003811/0.4871, allocations: 343 kB / 0.5191 GB, free: 2.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.4871, allocations: 305.1 kB / 0.5194 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/0.4877, allocations: 307.8 kB / 0.5197 GB, free: 2.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.4889, allocations: 1.32 MB / 0.521 GB, free: 380 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/0.4909, allocations: 1.811 MB / 0.5227 GB, free: 14.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.163e-05/0.4909, allocations: 12 kB / 0.5227 GB, free: 14.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00261/0.4936, allocations: 1.698 MB / 0.5244 GB, free: 12.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.4936, allocations: 20 kB / 0.5244 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.4936, allocations: 36 kB / 0.5245 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005812/0.4942, allocations: 161.4 kB / 0.5246 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.4955, allocations: 483.3 kB / 0.5251 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/0.4982, allocations: 4.092 MB / 0.5291 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009801/0.4992, allocations: 87.97 kB / 0.5292 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.4994, allocations: 131.9 kB / 0.5293 GB, free: 6.988 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.0005297/0.4999, allocations: 376.9 kB / 0.5296 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.5002, allocations: 142.3 kB / 0.5298 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.5026, allocations: 1.385 MB / 0.5311 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.5026, allocations: 4 kB / 0.5311 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.5026, allocations: 0 / 0.5311 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.5026, allocations: 0 / 0.5311 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.5049, allocations: 1.526 MB / 0.5326 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.5049, allocations: 4 kB / 0.5326 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.5052, allocations: 67.89 kB / 0.5327 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007181/0.5059, allocations: 187.2 kB / 0.5329 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.506, allocations: 16 kB / 0.5329 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/0.5086, allocations: 3.943 MB / 0.5367 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.716e-06/0.5086, allocations: 4 kB / 0.5367 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.5098, allocations: 0.977 MB / 0.5377 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.5101, allocations: 203.2 kB / 0.5379 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.5103, allocations: 16.05 kB / 0.5379 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/0.5107, allocations: 8 kB / 0.5379 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.426e-05/0.5108, allocations: 43.83 kB / 0.538 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.5109, allocations: 20 kB / 0.538 GB, free: 13.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001163/0.512, allocations: 0.9631 MB / 0.5389 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.512, allocations: 0 / 0.5389 GB, free: 12.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002418/0.5145, allocations: 0.8541 MB / 0.5397 GB, free: 11.62 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.002082/0.5166, allocations: 1.033 MB / 0.5408 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.5183, allocations: 0.9281 MB / 0.5417 GB, free: 9.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5183, allocations: 0 / 0.5417 GB, free: 9.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000481/0.5188, allocations: 415.3 kB / 0.5421 GB, free: 9.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.52, allocations: 237.2 kB / 0.5423 GB, free: 9 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.5232, allocations: 2.313 MB / 0.5445 GB, free: 6.617 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007406/0.524, allocations: 1.188 MB / 0.5457 GB, free: 5.395 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001341/0.5253, allocations: 404.6 kB / 0.5461 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.5256, allocations: 199.8 kB / 0.5463 GB, free: 4.809 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.5256, allocations: 0 / 0.5463 GB, free: 4.809 MB / 414.1 MB Notification: Performance of Templates: time 0.03503/0.5607, allocations: 25.88 MB / 0.5716 GB, free: 10.98 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)