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.001192/0.001192, allocations: 105.7 kB / 16.41 MB, free: 5.973 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.001226/0.001226, allocations: 194.9 kB / 17.34 MB, free: 5.594 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.455/1.455, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08767/0.08767, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 68.11 kB / 425.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1203, allocations: 53.62 MB / 479.5 MB, free: 5.797 MB / 350.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.04285/0.1632, allocations: 28.12 MB / 0.4957 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2977/0.4609, allocations: 28.26 MB / 0.5233 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.4624, allocations: 22.06 kB / 0.5233 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.4643, allocations: 0.671 MB / 0.524 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004202/0.4685, allocations: 1.31 MB / 0.5253 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01245/0.481, allocations: 4.26 MB / 0.5294 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003455/0.4844, allocations: 2.193 MB / 0.5316 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.486, allocations: 1.147 MB / 0.5327 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001325/0.4873, allocations: 1.021 MB / 0.5337 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001463/0.4888, allocations: 1.122 MB / 0.5348 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000324/0.4891, allocations: 180.8 kB / 0.5349 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009541/0.4987, allocations: 2.667 MB / 0.5375 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007051/0.4994, allocations: 473.7 kB / 0.538 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.5007, allocations: 0.9827 MB / 0.539 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01281/0.5135, allocations: 5.02 MB / 0.5439 GB, free: 3.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.5136, allocations: 3.984 kB / 0.5439 GB, free: 3.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5136, allocations: 3.938 kB / 0.5439 GB, free: 3.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.5136, allocations: 1.406 kB / 0.5439 GB, free: 3.793 MB / 382.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.003722/0.5173, allocations: 2.526 MB / 0.5463 GB, free: 2.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.5174, allocations: 8.031 kB / 0.5463 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002027/0.5194, allocations: 0.5235 MB / 0.5469 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.521, allocations: 1.227 MB / 0.5481 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.5211, allocations: 166.9 kB / 0.5482 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002319/0.5214, allocations: 148 kB / 0.5484 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003012/0.5244, allocations: 2.024 MB / 0.5503 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.5244, allocations: 3.938 kB / 0.5503 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/0.5246, allocations: 60 kB / 0.5504 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.764e-05/0.5246, allocations: 36 kB / 0.5504 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003895/0.5285, allocations: 2.771 MB / 0.5531 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00934/0.5379, allocations: 6.597 MB / 0.5596 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.5397, allocations: 1.061 MB / 0.5606 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009341/0.5407, allocations: 0.5599 MB / 0.5612 GB, free: 2.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0124/0.5531, allocations: 8.39 MB / 0.5694 GB, free: 9.141 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.5531, allocations: 41.59 kB / 0.5694 GB, free: 9.094 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005038/0.5536, allocations: 106.5 kB / 0.5695 GB, free: 8.988 MB / 414.1 MB Notification: Performance of pre-optimization done (n=50): time 3.026e-06/0.5537, allocations: 0 / 0.5695 GB, free: 8.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=50): time 0.002079/0.5557, allocations: 0.9996 MB / 0.5705 GB, free: 7.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.839e-05/0.5558, allocations: 111.2 kB / 0.5706 GB, free: 7.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/0.5575, allocations: 1.237 MB / 0.5718 GB, free: 6.562 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.5576, allocations: 40.39 kB / 0.5718 GB, free: 6.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006529/0.5583, allocations: 0.9628 MB / 0.5728 GB, free: 5.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.5584, allocations: 193.4 kB / 0.5729 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004504/0.5589, allocations: 339.1 kB / 0.5733 GB, free: 5.012 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.559, allocations: 301.1 kB / 0.5736 GB, free: 4.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/0.5596, allocations: 307.8 kB / 0.5739 GB, free: 4.414 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.5609, allocations: 1.32 MB / 0.5751 GB, free: 2.617 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.5632, allocations: 1.823 MB / 0.5769 GB, free: 376 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-05/0.5632, allocations: 12 kB / 0.5769 GB, free: 364 kB / 414.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003157/0.5664, allocations: 1.686 MB / 0.5786 GB, free: 14.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.5664, allocations: 20 kB / 0.5786 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-05/0.5665, allocations: 36 kB / 0.5786 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006895/0.5672, allocations: 167 kB / 0.5788 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.5685, allocations: 481.9 kB / 0.5792 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003353/0.5719, allocations: 4.078 MB / 0.5832 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.5732, allocations: 97.02 kB / 0.5833 GB, free: 9.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/0.5734, allocations: 124 kB / 0.5834 GB, free: 9.379 MB / 430.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.0006937/0.5741, allocations: 380.9 kB / 0.5838 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.5745, allocations: 138.2 kB / 0.5839 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002484/0.577, allocations: 1.387 MB / 0.5853 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.577, allocations: 6.641 kB / 0.5853 GB, free: 7.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.577, allocations: 4 kB / 0.5853 GB, free: 7.477 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.577, allocations: 0 / 0.5853 GB, free: 7.477 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.5797, allocations: 1.517 MB / 0.5868 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.5797, allocations: 0 / 0.5868 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003234/0.58, allocations: 79.88 kB / 0.5869 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007316/0.5808, allocations: 180.2 kB / 0.587 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.5808, allocations: 19.98 kB / 0.5871 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.5836, allocations: 3.942 MB / 0.5909 GB, free: 1.316 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.333e-06/0.5837, allocations: 7.938 kB / 0.5909 GB, free: 1.309 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.5851, allocations: 0.9852 MB / 0.5919 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003705/0.5854, allocations: 191.3 kB / 0.5921 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/0.5857, allocations: 15.91 kB / 0.5921 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005357/0.5863, allocations: 15.98 kB / 0.5921 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.139e-05/0.5864, allocations: 42.52 kB / 0.5921 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.5864, allocations: 23.94 kB / 0.5921 GB, free: 15.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.5878, allocations: 0.9592 MB / 0.5931 GB, free: 15.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5878, allocations: 0 / 0.5931 GB, free: 15.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002717/0.5905, allocations: 0.8529 MB / 0.5939 GB, free: 14.16 MB / 446.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.002318/0.5928, allocations: 1.03 MB / 0.5949 GB, free: 13.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001948/0.5948, allocations: 0.9123 MB / 0.5958 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5948, allocations: 0 / 0.5958 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005462/0.5954, allocations: 416.5 kB / 0.5962 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.5968, allocations: 243.6 kB / 0.5964 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003633/0.6004, allocations: 2.315 MB / 0.5987 GB, free: 9.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008773/0.6013, allocations: 1.179 MB / 0.5999 GB, free: 8.148 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005626/0.6019, allocations: 298.7 kB / 0.6001 GB, free: 7.871 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.6019, allocations: 0 / 0.6001 GB, free: 7.871 MB / 446.1 MB Notification: Performance of Templates: time 0.05453/0.6565, allocations: 48.31 MB / 0.6473 GB, free: 7.859 MB / 494.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)