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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.09453/0.09453, allocations: 15.29 MB / 31.09 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001094, allocations: 198 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 264 MB, free: 4.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009114/0.0009114, allocations: 105 kB / 318.4 MB, free: 3.445 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 56.5 kB / 382.7 MB, free: 48.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09606, allocations: 53.63 MB / 436.3 MB, free: 1.039 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.03209/0.1282, allocations: 26.98 MB / 463.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02738/0.1556, allocations: 28.2 MB / 491.5 MB, free: 9.84 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001753/0.1574, allocations: 51.62 kB / 491.6 MB, free: 9.789 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001681/0.1591, allocations: 0.6171 MB / 492.2 MB, free: 9.168 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003427/0.1625, allocations: 1.211 MB / 493.4 MB, free: 7.949 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009942/0.1725, allocations: 3.748 MB / 497.1 MB, free: 4.18 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.175, allocations: 2.145 MB / 499.3 MB, free: 2.027 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009714/0.176, allocations: 0.9972 MB / 0.4886 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008971/0.1769, allocations: 1.009 MB / 0.4895 GB, free: 15.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.1779, allocations: 1.105 MB / 0.4906 GB, free: 14.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002069/0.1781, allocations: 112 kB / 0.4907 GB, free: 14.76 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007771/0.1859, allocations: 2.628 MB / 0.4933 GB, free: 12.13 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004686/0.1864, allocations: 418.6 kB / 0.4937 GB, free: 11.72 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009022/0.1873, allocations: 0.9252 MB / 0.4946 GB, free: 10.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008875/0.1962, allocations: 4.702 MB / 0.4992 GB, free: 6.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1962, allocations: 0 / 0.4992 GB, free: 6.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1962, allocations: 4 kB / 0.4992 GB, free: 6.066 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.445e-05/0.1963, allocations: 0 / 0.4992 GB, free: 6.066 MB / 378.7 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.004167/0.2005, allocations: 2.522 MB / 0.5017 GB, free: 3.484 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2005, allocations: 12.88 kB / 0.5017 GB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001965/0.2025, allocations: 0.5133 MB / 0.5022 GB, free: 2.957 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.2043, allocations: 1.192 MB / 0.5033 GB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.2044, allocations: 170.7 kB / 0.5035 GB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002504/0.2047, allocations: 144 kB / 0.5036 GB, free: 1.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1734/0.3781, allocations: 2.023 MB / 0.5056 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.3781, allocations: 2.5 kB / 0.5056 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001783/0.3783, allocations: 59.19 kB / 0.5057 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.588e-05/0.3784, allocations: 37.12 kB / 0.5057 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003573/0.3819, allocations: 2.767 MB / 0.5084 GB, free: 68.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008721/0.3907, allocations: 6.6 MB / 0.5149 GB, free: 66.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.3923, allocations: 1.06 MB / 0.5159 GB, free: 66.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008274/0.3932, allocations: 0.5588 MB / 0.5164 GB, free: 66.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00913/0.4023, allocations: 8.43 MB / 0.5247 GB, free: 60.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.631e-05/0.4023, allocations: 40.69 kB / 0.5247 GB, free: 60.4 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003027/0.4026, allocations: 96.72 kB / 0.5248 GB, free: 60.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.244e-06/0.4027, allocations: 1.094 kB / 0.5248 GB, free: 60.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.001552/0.4042, allocations: 1.002 MB / 0.5258 GB, free: 59.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4043, allocations: 116.8 kB / 0.5259 GB, free: 59.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.4055, allocations: 1.239 MB / 0.5271 GB, free: 59.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.4056, allocations: 31.89 kB / 0.5271 GB, free: 59.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.406, allocations: 0.9632 MB / 0.5281 GB, free: 58.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4061, allocations: 199 kB / 0.5283 GB, free: 58.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003331/0.4064, allocations: 338.9 kB / 0.5286 GB, free: 57.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.076e-05/0.4064, allocations: 301.1 kB / 0.5289 GB, free: 57.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/0.4069, allocations: 311.7 kB / 0.5292 GB, free: 57.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008359/0.4078, allocations: 1.323 MB / 0.5305 GB, free: 55.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.4092, allocations: 1.819 MB / 0.5322 GB, free: 54.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.4093, allocations: 11.47 kB / 0.5322 GB, free: 54.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00228/0.4115, allocations: 1.687 MB / 0.5339 GB, free: 53.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.4116, allocations: 19.62 kB / 0.5339 GB, free: 53.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.4116, allocations: 43.31 kB / 0.534 GB, free: 53.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/0.4121, allocations: 166.1 kB / 0.5341 GB, free: 53.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.4133, allocations: 483.8 kB / 0.5346 GB, free: 53.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.415, allocations: 3.89 MB / 0.5384 GB, free: 49.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009324/0.4159, allocations: 96.55 kB / 0.5385 GB, free: 49.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.4161, allocations: 129.1 kB / 0.5386 GB, free: 49.09 MB / 378.7 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.0004414/0.4165, allocations: 374.4 kB / 0.5389 GB, free: 48.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.4167, allocations: 145.5 kB / 0.5391 GB, free: 48.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/0.4189, allocations: 1.377 MB / 0.5404 GB, free: 47.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.419, allocations: 4.344 kB / 0.5404 GB, free: 47.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.419, allocations: 9.656 kB / 0.5404 GB, free: 47.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.419, allocations: 4.5 kB / 0.5404 GB, free: 47.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.4213, allocations: 1.521 MB / 0.5419 GB, free: 46.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.4213, allocations: 3.938 kB / 0.5419 GB, free: 46.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.4216, allocations: 74.67 kB / 0.542 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006198/0.4222, allocations: 180.2 kB / 0.5422 GB, free: 46.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.4222, allocations: 18.47 kB / 0.5422 GB, free: 46.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/0.4238, allocations: 3.747 MB / 0.5459 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4238, allocations: 0 / 0.5459 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.4266, allocations: 3.126 MB / 0.5489 GB, free: 40.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.4268, allocations: 197.7 kB / 0.5491 GB, free: 40.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.4269, allocations: 19.81 kB / 0.5491 GB, free: 40.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004036/0.4273, allocations: 11.84 kB / 0.5491 GB, free: 40.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-05/0.4274, allocations: 42.08 kB / 0.5492 GB, free: 40.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.4274, allocations: 19.06 kB / 0.5492 GB, free: 40.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008683/0.4283, allocations: 0.9656 MB / 0.5501 GB, free: 39.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4283, allocations: 0 / 0.5501 GB, free: 39.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002962/0.4313, allocations: 0.9891 MB / 0.5511 GB, free: 39.45 MB / 378.7 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.001956/0.4332, allocations: 1.029 MB / 0.5521 GB, free: 39.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.4348, allocations: 0.9019 MB / 0.553 GB, free: 38.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.4348, allocations: 0 / 0.553 GB, free: 38.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.4352, allocations: 412.2 kB / 0.5534 GB, free: 38.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.4363, allocations: 229.5 kB / 0.5536 GB, free: 37.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.4389, allocations: 3.058 MB / 0.5566 GB, free: 34.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.4393, allocations: 1.191 MB / 0.5577 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001253/0.4406, allocations: 416.5 kB / 0.5581 GB, free: 33.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.4409, allocations: 212.8 kB / 0.5583 GB, free: 33.12 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4409, allocations: 0 / 0.5583 GB, free: 33.12 MB / 378.7 MB Notification: Performance of Templates: time 0.02823/0.4691, allocations: 25.75 MB / 0.5835 GB, free: 7.922 MB / 378.7 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)