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.0007765/0.0007765, allocations: 92.55 kB / 16.02 MB, free: 80 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.0008925/0.0008924, allocations: 184.3 kB / 16.92 MB, free: 6.922 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.429/1.429, allocations: 223.3 MB / 241 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2363/0.2363, allocations: 15.28 MB / 307.4 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003163, allocations: 11.98 kB / 372.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2751, allocations: 54.61 MB / 427.4 MB, free: 40.42 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.0297/0.3049, allocations: 28.98 MB / 456.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02449/0.3294, allocations: 27.9 MB / 484.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.3312, allocations: 43.62 kB / 484.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001681/0.3329, allocations: 0.6146 MB / 484.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00361/0.3365, allocations: 1.214 MB / 486.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01133/0.3479, allocations: 3.735 MB / 489.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003888/0.3518, allocations: 2.124 MB / 492 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001692/0.3535, allocations: 0.9563 MB / 492.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.3548, allocations: 0.9674 MB / 493.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.3561, allocations: 1.063 MB / 495 MB, free: 64 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004504/0.3566, allocations: 104.9 kB / 495.1 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01169/0.3683, allocations: 2.616 MB / 497.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009412/0.3693, allocations: 403.9 kB / 498.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.3707, allocations: 0.9114 MB / 499 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007295/0.378, allocations: 3.66 MB / 0.4909 GB, free: 9.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3781, allocations: 0 / 0.4909 GB, free: 9.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3781, allocations: 0 / 0.4909 GB, free: 9.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.432e-05/0.3781, allocations: 0 / 0.4909 GB, free: 9.594 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.00503/0.3832, allocations: 2.119 MB / 0.4929 GB, free: 7.625 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3832, allocations: 12.03 kB / 0.4929 GB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/0.3858, allocations: 0.5252 MB / 0.4935 GB, free: 7.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.3881, allocations: 1.149 MB / 0.4946 GB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.3883, allocations: 172.2 kB / 0.4947 GB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003311/0.3886, allocations: 147.9 kB / 0.4949 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003895/0.3925, allocations: 2.023 MB / 0.4969 GB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.3926, allocations: 4 kB / 0.4969 GB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001883/0.3928, allocations: 64 kB / 0.4969 GB, free: 4.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.3928, allocations: 36.84 kB / 0.497 GB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005003/0.3979, allocations: 2.771 MB / 0.4997 GB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/0.4094, allocations: 6.539 MB / 0.506 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.4114, allocations: 1.076 MB / 0.5071 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009673/0.4124, allocations: 0.556 MB / 0.5076 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01129/0.4237, allocations: 8.212 MB / 0.5157 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.691e-05/0.4237, allocations: 46.98 kB / 0.5157 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004484/0.4242, allocations: 98.59 kB / 0.5158 GB, free: 15.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.966e-06/0.4242, allocations: 0 / 0.5158 GB, free: 15.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.001913/0.4261, allocations: 1.005 MB / 0.5168 GB, free: 14.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.4262, allocations: 115.2 kB / 0.5169 GB, free: 14.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.4279, allocations: 1.241 MB / 0.5181 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.013e-05/0.4279, allocations: 29.7 kB / 0.5181 GB, free: 13.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006675/0.4286, allocations: 0.9629 MB / 0.5191 GB, free: 12.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.4288, allocations: 193.4 kB / 0.5193 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.4289, allocations: 121.9 kB / 0.5194 GB, free: 11.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.618e-05/0.429, allocations: 309.1 kB / 0.5197 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005656/0.4296, allocations: 311.8 kB / 0.52 GB, free: 11.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.4308, allocations: 1.32 MB / 0.5213 GB, free: 9.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.4328, allocations: 1.812 MB / 0.523 GB, free: 7.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/0.4329, allocations: 8 kB / 0.523 GB, free: 7.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002984/0.4359, allocations: 1.682 MB / 0.5247 GB, free: 5.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.26e-05/0.4359, allocations: 27.98 kB / 0.5247 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.899e-05/0.436, allocations: 36 kB / 0.5247 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006737/0.4367, allocations: 169.9 kB / 0.5249 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.4381, allocations: 471.3 kB / 0.5253 GB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002834/0.441, allocations: 3.891 MB / 0.5291 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.4423, allocations: 103.7 kB / 0.5292 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/0.4425, allocations: 128 kB / 0.5294 GB, free: 388 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.0007193/0.4433, allocations: 381.5 kB / 0.5297 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002199/0.4435, allocations: 138.2 kB / 0.5299 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/0.4463, allocations: 1.375 MB / 0.5312 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.4463, allocations: 8 kB / 0.5312 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4464, allocations: 4 kB / 0.5312 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.4464, allocations: 7.922 kB / 0.5312 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.4492, allocations: 1.506 MB / 0.5327 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.4492, allocations: 0 / 0.5327 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/0.4495, allocations: 71.89 kB / 0.5328 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008101/0.4503, allocations: 179.6 kB / 0.5329 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.4504, allocations: 19.98 kB / 0.533 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/0.4531, allocations: 3.75 MB / 0.5366 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.4531, allocations: 7.938 kB / 0.5366 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.4547, allocations: 0.9808 MB / 0.5376 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000541/0.4553, allocations: 259.1 kB / 0.5378 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.4556, allocations: 8 kB / 0.5378 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005776/0.4561, allocations: 20.05 kB / 0.5379 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.629e-05/0.4563, allocations: 43.83 kB / 0.5379 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.273e-05/0.4563, allocations: 20 kB / 0.5379 GB, free: 6.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001755/0.4581, allocations: 0.9592 MB / 0.5389 GB, free: 6.027 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4581, allocations: 0 / 0.5389 GB, free: 6.027 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003435/0.4615, allocations: 0.8423 MB / 0.5397 GB, free: 5.184 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.003003/0.4645, allocations: 1.045 MB / 0.5407 GB, free: 4.129 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.4669, allocations: 0.8971 MB / 0.5416 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.4669, allocations: 0 / 0.5416 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006677/0.4676, allocations: 407.1 kB / 0.542 GB, free: 2.816 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.4701, allocations: 233.1 kB / 0.5422 GB, free: 2.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004773/0.4748, allocations: 2.945 MB / 0.5451 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009873/0.4759, allocations: 1.189 MB / 0.5462 GB, free: 14.35 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007238/0.4766, allocations: 306.1 kB / 0.5465 GB, free: 14.06 MB / 430.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4766, allocations: 0 / 0.5465 GB, free: 14.06 MB / 430.1 MB Notification: Performance of Templates: time 0.2468/0.7234, allocations: 48.37 MB / 0.5937 GB, free: 134.9 MB / 462.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)