Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.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.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001515/0.001515, allocations: 187 kB / 17.34 MB, free: 5.719 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.268/1.268, 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.0701/0.0701, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 72.03 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.0885, allocations: 53.61 MB / 479.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01113/0.09968, allocations: 11.64 MB / 491.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2399/0.3396, allocations: 33.73 MB / 0.5125 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.3414, allocations: 30.34 kB / 0.5126 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001894/0.3433, allocations: 0.7467 MB / 0.5133 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007445/0.3508, allocations: 2.763 MB / 0.516 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01152/0.3624, allocations: 4.418 MB / 0.5203 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005226/0.3676, allocations: 3.42 MB / 0.5237 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002557/0.3702, allocations: 2.075 MB / 0.5257 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.3723, allocations: 1.656 MB / 0.5273 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.3745, allocations: 1.863 MB / 0.5291 GB, free: 4 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000486/0.375, allocations: 321.2 kB / 0.5294 GB, free: 4 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/0.3875, allocations: 3.729 MB / 0.5331 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008207/0.3884, allocations: 0.749 MB / 0.5338 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001898/0.3903, allocations: 1.581 MB / 0.5353 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0145/0.4048, allocations: 7.254 MB / 0.5424 GB, free: 9.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4048, allocations: 4 kB / 0.5424 GB, free: 9.895 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4048, allocations: 0 / 0.5424 GB, free: 9.895 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.527e-05/0.4049, allocations: 0 / 0.5424 GB, free: 9.895 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.006619/0.4115, allocations: 3.702 MB / 0.546 GB, free: 7.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4116, allocations: 8.031 kB / 0.546 GB, free: 7.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002424/0.414, allocations: 0.6176 MB / 0.5467 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002346/0.4164, allocations: 1.491 MB / 0.5481 GB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.4166, allocations: 261.5 kB / 0.5484 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000388/0.417, allocations: 263.9 kB / 0.5486 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004502/0.4215, allocations: 3.124 MB / 0.5517 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/0.4215, allocations: 4 kB / 0.5517 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002408/0.4218, allocations: 104 kB / 0.5518 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-05/0.4218, allocations: 64 kB / 0.5518 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005362/0.4272, allocations: 3.85 MB / 0.5556 GB, free: 13.39 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01409/0.4413, allocations: 9.87 MB / 0.5652 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004514/0.4458, allocations: 3.461 MB / 0.5686 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.4476, allocations: 1.341 MB / 0.5699 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0141/0.4617, allocations: 10.84 MB / 0.5805 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/0.4618, allocations: 52.56 kB / 0.5806 GB, free: 2.371 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007749/0.4626, allocations: 209.9 kB / 0.5808 GB, free: 2.164 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 3.156e-06/0.4626, allocations: 4 kB / 0.5808 GB, free: 2.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04294/0.5055, allocations: 12.27 MB / 0.5927 GB, free: 5.762 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.5056, allocations: 77.41 kB / 0.5928 GB, free: 5.676 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.507, allocations: 1.179 MB / 0.594 GB, free: 4.484 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.5072, allocations: 65.7 kB / 0.594 GB, free: 4.414 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006591/0.5078, allocations: 1.143 MB / 0.5951 GB, free: 3.266 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000614/0.5085, allocations: 0.8586 MB / 0.596 GB, free: 2.414 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007329/0.5092, allocations: 0.5727 MB / 0.5965 GB, free: 1.832 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.289e-05/0.5093, allocations: 301.1 kB / 0.5968 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/0.5109, allocations: 1.009 MB / 0.5978 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002165/0.5131, allocations: 1.917 MB / 0.5997 GB, free: 14.22 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004152/0.5172, allocations: 3.196 MB / 0.6028 GB, free: 10.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.5173, allocations: 8 kB / 0.6028 GB, free: 10.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009505/0.5268, allocations: 4.132 MB / 0.6069 GB, free: 6.398 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.5268, allocations: 16 kB / 0.6069 GB, free: 6.383 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.5269, allocations: 28 kB / 0.6069 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005942/0.5328, allocations: 1.358 MB / 0.6082 GB, free: 4.984 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/0.535, allocations: 0.6514 MB / 0.6089 GB, free: 4.332 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.5458, allocations: 8.261 MB / 0.6169 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.5478, allocations: 111.9 kB / 0.617 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/0.5481, allocations: 164 kB / 0.6172 GB, free: 11.36 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (341): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009658/0.5491, allocations: 0.5164 MB / 0.6177 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003799/0.5495, allocations: 197.5 kB / 0.6179 GB, free: 10.63 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009475/0.5589, allocations: 3.896 MB / 0.6217 GB, free: 6.664 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.559, allocations: 28 kB / 0.6217 GB, free: 6.637 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.559, allocations: 4 kB / 0.6217 GB, free: 6.633 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/0.559, allocations: 19.88 kB / 0.6217 GB, free: 6.613 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.5717, allocations: 6.323 MB / 0.6279 GB, free: 196 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.5718, allocations: 0 / 0.6279 GB, free: 196 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/0.5735, allocations: 435.5 kB / 0.6283 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005457/0.579, allocations: 1.271 MB / 0.6296 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001924/0.5792, allocations: 99.92 kB / 0.6297 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009042/0.5883, allocations: 7.785 MB / 0.6373 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.5883, allocations: 4 kB / 0.6373 GB, free: 6.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/0.5988, allocations: 5.041 MB / 0.6422 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000434/0.5992, allocations: 258.5 kB / 0.6424 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/0.5995, allocations: 51.94 kB / 0.6425 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.6008, allocations: 59.98 kB / 0.6425 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/0.6012, allocations: 233.7 kB / 0.6428 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/0.6014, allocations: 111.9 kB / 0.6429 GB, free: 252 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008586/0.6022, allocations: 0.7272 MB / 0.6436 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6022, allocations: 0 / 0.6436 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00372/0.606, allocations: 1.48 MB / 0.645 GB, free: 14.04 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * 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 (222): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002399/0.6084, allocations: 1.51 MB / 0.6465 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005832/0.6142, allocations: 3.504 MB / 0.6499 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.6142, allocations: 2 kB / 0.6499 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003099/0.6173, allocations: 2.027 MB / 0.6519 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.6189, allocations: 400.8 kB / 0.6523 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007304/0.6263, allocations: 4.811 MB / 0.657 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.6273, allocations: 1.587 MB / 0.6585 GB, free: 128 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009648/0.6283, allocations: 437.1 kB / 0.659 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of SimCode: time 6.42e-07/0.6283, allocations: 0 / 0.659 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of Templates: time 0.2691/0.8974, allocations: 89.39 MB / 0.7463 GB, free: 197.6 MB / 0.5606 GB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)