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.0008242/0.0008242, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00542/0.005421, allocations: 170.7 kB / 16.27 MB, free: 6.648 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.354/1.354, allocations: 223.3 MB / 240.3 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2197/0.2197, allocations: 15.27 MB / 306.7 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003588, allocations: 8 kB / 372.1 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3145, allocations: 54.62 MB / 426.7 MB, free: 40.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.StandardLeadAcidPotential): time 0.02794/0.3424, allocations: 28.34 MB / 455 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02549/0.368, allocations: 27.89 MB / 482.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.3698, allocations: 51.56 kB / 483 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.3715, allocations: 0.6069 MB / 483.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00351/0.375, allocations: 1.206 MB / 484.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.3856, allocations: 3.745 MB / 488.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.3883, allocations: 2.133 MB / 490.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.3894, allocations: 0.9536 MB / 491.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000979/0.3904, allocations: 0.9682 MB / 492.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.3916, allocations: 1.067 MB / 493.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002012/0.3918, allocations: 96 kB / 493.8 MB, free: 324 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009667/0.4015, allocations: 2.616 MB / 496.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009124/0.4024, allocations: 403.4 kB / 496.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.4039, allocations: 0.9152 MB / 497.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.4177, allocations: 4.649 MB / 0.4906 GB, free: 9.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.4177, allocations: 0 / 0.4906 GB, free: 9.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4177, allocations: 0 / 0.4906 GB, free: 9.031 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.839e-05/0.4178, allocations: 0 / 0.4906 GB, free: 9.031 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.00458/0.4224, allocations: 2.126 MB / 0.4926 GB, free: 7.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.4224, allocations: 8.031 kB / 0.4926 GB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002328/0.4248, allocations: 0.5212 MB / 0.4932 GB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.4268, allocations: 1.152 MB / 0.4943 GB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.427, allocations: 172.1 kB / 0.4944 GB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003023/0.4273, allocations: 147.9 kB / 0.4946 GB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003755/0.4311, allocations: 2.023 MB / 0.4966 GB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.4312, allocations: 0 / 0.4966 GB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000182/0.4314, allocations: 64.66 kB / 0.4966 GB, free: 3.586 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/0.4314, allocations: 36 kB / 0.4967 GB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004671/0.4361, allocations: 2.762 MB / 0.4994 GB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/0.4466, allocations: 6.55 MB / 0.5057 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.4485, allocations: 1.056 MB / 0.5068 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009091/0.4494, allocations: 0.5559 MB / 0.5073 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/0.4628, allocations: 8.22 MB / 0.5153 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.4628, allocations: 38.94 kB / 0.5154 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005042/0.4634, allocations: 98.59 kB / 0.5155 GB, free: 15.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 4.308e-06/0.4634, allocations: 0 / 0.5155 GB, free: 15.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.001969/0.4653, allocations: 1.001 MB / 0.5165 GB, free: 14.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.4654, allocations: 119.1 kB / 0.5166 GB, free: 14.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/0.4672, allocations: 1.237 MB / 0.5178 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.4673, allocations: 33.7 kB / 0.5178 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006841/0.468, allocations: 0.959 MB / 0.5187 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.4682, allocations: 201.4 kB / 0.5189 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.4683, allocations: 121.8 kB / 0.5191 GB, free: 11.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.4685, allocations: 313.1 kB / 0.5194 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005522/0.469, allocations: 307.8 kB / 0.5196 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.4705, allocations: 1.32 MB / 0.5209 GB, free: 9.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002163/0.4726, allocations: 1.804 MB / 0.5227 GB, free: 6.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-05/0.4727, allocations: 15.94 kB / 0.5227 GB, free: 6.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003042/0.4757, allocations: 1.69 MB / 0.5244 GB, free: 5.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.4758, allocations: 20 kB / 0.5244 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.739e-05/0.4758, allocations: 36 kB / 0.5244 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006948/0.4765, allocations: 165.9 kB / 0.5246 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.4779, allocations: 483.2 kB / 0.525 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.4813, allocations: 3.891 MB / 0.5288 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.4826, allocations: 95.78 kB / 0.5289 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/0.4828, allocations: 128 kB / 0.5291 GB, free: 12 kB / 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.0007325/0.4835, allocations: 381.4 kB / 0.5294 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.4838, allocations: 138.2 kB / 0.5295 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002819/0.4867, allocations: 1.374 MB / 0.5309 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.4867, allocations: 11.98 kB / 0.5309 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4867, allocations: 0 / 0.5309 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.4867, allocations: 11.86 kB / 0.5309 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002575/0.4893, allocations: 1.506 MB / 0.5324 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4893, allocations: 4 kB / 0.5324 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.4896, allocations: 71.88 kB / 0.5325 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/0.4903, allocations: 179.6 kB / 0.5326 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.4904, allocations: 15.98 kB / 0.5326 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/0.4931, allocations: 3.754 MB / 0.5363 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4931, allocations: 3.938 kB / 0.5363 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.4944, allocations: 0.9809 MB / 0.5373 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004324/0.4949, allocations: 263.1 kB / 0.5375 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/0.4951, allocations: 11.98 kB / 0.5375 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.4956, allocations: 16.06 kB / 0.5375 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.268e-05/0.4956, allocations: 35.89 kB / 0.5376 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.4957, allocations: 20 kB / 0.5376 GB, free: 6.617 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001482/0.4972, allocations: 0.967 MB / 0.5385 GB, free: 5.656 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4972, allocations: 0 / 0.5385 GB, free: 5.656 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003269/0.5005, allocations: 0.8385 MB / 0.5394 GB, free: 4.816 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.003169/0.5036, allocations: 1.041 MB / 0.5404 GB, free: 3.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.5058, allocations: 0.8971 MB / 0.5413 GB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/0.5058, allocations: 0 / 0.5413 GB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006628/0.5065, allocations: 411 kB / 0.5416 GB, free: 2.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.5084, allocations: 230.8 kB / 0.5419 GB, free: 2.223 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/0.5129, allocations: 2.918 MB / 0.5447 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009638/0.5138, allocations: 1.189 MB / 0.5459 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001607/0.5155, allocations: 412.3 kB / 0.5463 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.5159, allocations: 205.6 kB / 0.5465 GB, free: 13.42 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5159, allocations: 0 / 0.5465 GB, free: 13.42 MB / 430.1 MB Notification: Performance of Templates: time 0.04194/0.5578, allocations: 25.17 MB / 0.571 GB, free: 4.305 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)