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.009045/0.009045, allocations: 98.41 kB / 15.73 MB, free: 6.008 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.001852/0.001852, allocations: 192.2 kB / 16.67 MB, free: 5.938 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.253/0.253, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 55.91 kB / 425.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3711, allocations: 53.61 MB / 478.8 MB, free: 25.84 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.04127/0.4124, allocations: 28.34 MB / 0.4953 GB, free: 6.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03025/0.4427, allocations: 28.26 MB / 0.5229 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002463/0.4452, allocations: 23.88 kB / 0.5229 GB, free: 9.941 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.4472, allocations: 0.6709 MB / 0.5235 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004639/0.4518, allocations: 1.311 MB / 0.5248 GB, free: 7.945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01209/0.4639, allocations: 4.262 MB / 0.529 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00381/0.4678, allocations: 2.192 MB / 0.5311 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.4694, allocations: 1.146 MB / 0.5322 GB, free: 280 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.4709, allocations: 1.021 MB / 0.5332 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.4727, allocations: 1.129 MB / 0.5343 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003467/0.473, allocations: 176 kB / 0.5345 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009736/0.4828, allocations: 2.66 MB / 0.5371 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000759/0.4836, allocations: 482.5 kB / 0.5376 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.4849, allocations: 0.9799 MB / 0.5385 GB, free: 9.824 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01687/0.5018, allocations: 5.05 MB / 0.5435 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.5018, allocations: 0 / 0.5435 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5018, allocations: 4 kB / 0.5435 GB, free: 4.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.477e-05/0.5019, allocations: 0 / 0.5435 GB, free: 4.75 MB / 414.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.004977/0.5069, allocations: 2.609 MB / 0.546 GB, free: 2.078 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.5069, allocations: 8.031 kB / 0.546 GB, free: 2.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002269/0.5092, allocations: 0.526 MB / 0.5465 GB, free: 1.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.5113, allocations: 1.24 MB / 0.5477 GB, free: 268 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.5115, allocations: 174.7 kB / 0.5479 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002574/0.5118, allocations: 144 kB / 0.548 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003196/0.515, allocations: 2.027 MB / 0.55 GB, free: 13.84 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.412e-05/0.515, allocations: 3.938 kB / 0.55 GB, free: 13.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001562/0.5152, allocations: 56 kB / 0.5501 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.5152, allocations: 40 kB / 0.5501 GB, free: 13.74 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003945/0.5192, allocations: 2.764 MB / 0.5528 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009223/0.5284, allocations: 6.619 MB / 0.5593 GB, free: 4.152 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.5302, allocations: 1.064 MB / 0.5603 GB, free: 3.059 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008736/0.5311, allocations: 0.556 MB / 0.5609 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.5416, allocations: 8.403 MB / 0.5691 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.5417, allocations: 39 kB / 0.5691 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003461/0.542, allocations: 110.9 kB / 0.5692 GB, free: 8.906 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 2.385e-06/0.542, allocations: 0 / 0.5692 GB, free: 8.906 MB / 446.1 MB Notification: Performance of matching and sorting (n=50): time 0.001777/0.5438, allocations: 0.9979 MB / 0.5702 GB, free: 7.859 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.5439, allocations: 115.4 kB / 0.5703 GB, free: 7.723 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.5453, allocations: 1.245 MB / 0.5715 GB, free: 6.469 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.5453, allocations: 33.7 kB / 0.5715 GB, free: 6.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000615/0.5459, allocations: 0.9935 MB / 0.5725 GB, free: 5.426 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.5461, allocations: 206.4 kB / 0.5727 GB, free: 5.223 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003979/0.5465, allocations: 343.3 kB / 0.573 GB, free: 4.879 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.5466, allocations: 305.1 kB / 0.5733 GB, free: 4.578 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005358/0.5472, allocations: 311.8 kB / 0.5736 GB, free: 4.273 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.5483, allocations: 1.316 MB / 0.5749 GB, free: 2.449 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001966/0.5503, allocations: 1.809 MB / 0.5767 GB, free: 132 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.5503, allocations: 12 kB / 0.5767 GB, free: 120 kB / 446.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002631/0.553, allocations: 1.699 MB / 0.5783 GB, free: 14.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.553, allocations: 24.06 kB / 0.5784 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.5531, allocations: 36 kB / 0.5784 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006573/0.5537, allocations: 157.6 kB / 0.5786 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.555, allocations: 487.2 kB / 0.579 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.5582, allocations: 4.089 MB / 0.583 GB, free: 9.281 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.5593, allocations: 91.75 kB / 0.5831 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/0.5595, allocations: 136 kB / 0.5832 GB, free: 9.059 MB / 462.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.0006348/0.5602, allocations: 380.9 kB / 0.5836 GB, free: 8.676 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.5604, allocations: 143.1 kB / 0.5837 GB, free: 8.535 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.5629, allocations: 1.372 MB / 0.5851 GB, free: 7.062 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.5629, allocations: 4 kB / 0.5851 GB, free: 7.059 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.5629, allocations: 4 kB / 0.5851 GB, free: 7.055 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.563, allocations: 7.969 kB / 0.5851 GB, free: 7.047 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002486/0.5654, allocations: 1.526 MB / 0.5866 GB, free: 5.426 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.5655, allocations: 4 kB / 0.5866 GB, free: 5.422 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.5658, allocations: 67.89 kB / 0.5866 GB, free: 5.355 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000722/0.5665, allocations: 187.2 kB / 0.5868 GB, free: 5.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.5666, allocations: 16 kB / 0.5868 GB, free: 5.145 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.5696, allocations: 3.94 MB / 0.5907 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.5696, allocations: 7.938 kB / 0.5907 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.5711, allocations: 0.9902 MB / 0.5917 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.5715, allocations: 212 kB / 0.5919 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.5716, allocations: 12.06 kB / 0.5919 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004143/0.5721, allocations: 8 kB / 0.5919 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.5721, allocations: 39.89 kB / 0.5919 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/0.5722, allocations: 20 kB / 0.5919 GB, free: 15.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001383/0.5736, allocations: 0.967 MB / 0.5929 GB, free: 14.54 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5736, allocations: 0 / 0.5929 GB, free: 14.54 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002896/0.5765, allocations: 0.868 MB / 0.5937 GB, free: 13.66 MB / 478.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.002025/0.5785, allocations: 1.046 MB / 0.5947 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.5806, allocations: 0.909 MB / 0.5956 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5806, allocations: 0 / 0.5956 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000562/0.5812, allocations: 419 kB / 0.596 GB, free: 11.27 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.5825, allocations: 229.6 kB / 0.5963 GB, free: 11.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.5858, allocations: 2.324 MB / 0.5985 GB, free: 8.656 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006801/0.5865, allocations: 1.184 MB / 0.5997 GB, free: 7.441 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.5876, allocations: 405.9 kB / 0.6001 GB, free: 7.047 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/0.588, allocations: 201.2 kB / 0.6003 GB, free: 6.852 MB / 478.1 MB Notification: Performance of SimCode: time 7.61e-07/0.588, allocations: 0 / 0.6003 GB, free: 6.852 MB / 478.1 MB Notification: Performance of Templates: time 0.2922/0.8802, allocations: 26.17 MB / 0.6258 GB, free: 109.7 MB / 478.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)