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: "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 108 kB / 15.6 MB, free: 132 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.001079/0.001079, allocations: 198 kB / 16.54 MB, free: 6.672 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.146/1.146, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1548/0.1548, allocations: 15.32 MB / 305.7 MB, free: 15.34 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 63.91 kB / 370.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07652/0.07763, allocations: 53.6 MB / 424 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01021/0.08786, allocations: 11.64 MB / 435.7 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1522/0.2401, allocations: 33.74 MB / 469.4 MB, free: 28.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.2412, allocations: 24.72 kB / 469.5 MB, free: 28.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.2427, allocations: 0.7502 MB / 470.2 MB, free: 27.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004878/0.2477, allocations: 2.759 MB / 473 MB, free: 25.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007005/0.2547, allocations: 4.423 MB / 477.4 MB, free: 23.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002397/0.2571, allocations: 3.4 MB / 480.8 MB, free: 21.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.2587, allocations: 2.069 MB / 482.9 MB, free: 20.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.26, allocations: 1.648 MB / 484.5 MB, free: 20.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.2617, allocations: 1.859 MB / 486.4 MB, free: 19.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004275/0.2622, allocations: 324.7 kB / 486.7 MB, free: 19.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008463/0.2706, allocations: 3.723 MB / 490.4 MB, free: 18.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005357/0.2712, allocations: 0.7536 MB / 491.2 MB, free: 17.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.2724, allocations: 1.581 MB / 492.7 MB, free: 16.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009414/0.2818, allocations: 7.202 MB / 499.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2818, allocations: 0 / 499.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2818, allocations: 0 / 499.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.065e-05/0.2819, allocations: 0 / 499.9 MB, free: 13.83 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: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.005995/0.2879, allocations: 3.699 MB / 0.4918 GB, free: 11.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2879, allocations: 9.625 kB / 0.4918 GB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003555/0.2883, allocations: 367 kB / 0.4922 GB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002207/0.2905, allocations: 0.623 MB / 0.4928 GB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.2924, allocations: 1.452 MB / 0.4942 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.2925, allocations: 259.3 kB / 0.4945 GB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003481/0.2929, allocations: 267.6 kB / 0.4947 GB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003659/0.2966, allocations: 3.124 MB / 0.4978 GB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.945e-05/0.2966, allocations: 0 / 0.4978 GB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002412/0.2969, allocations: 106 kB / 0.4979 GB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-05/0.2969, allocations: 64.5 kB / 0.4979 GB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004295/0.3012, allocations: 3.845 MB / 0.5017 GB, free: 5.73 MB / 366.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.01189/0.3131, allocations: 9.947 MB / 0.5114 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/0.3173, allocations: 3.468 MB / 0.5148 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.319, allocations: 1.336 MB / 0.5161 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01256/0.3315, allocations: 10.85 MB / 0.5267 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.3316, allocations: 52.56 kB / 0.5267 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006077/0.3322, allocations: 206 kB / 0.5269 GB, free: 10.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 2.795e-06/0.3322, allocations: 0 / 0.5269 GB, free: 10.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.03919/0.3714, allocations: 12.28 MB / 0.5389 GB, free: 13.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.3714, allocations: 81.39 kB / 0.539 GB, free: 13.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.3726, allocations: 1.168 MB / 0.5401 GB, free: 12.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.3727, allocations: 69.7 kB / 0.5402 GB, free: 12.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006138/0.3734, allocations: 1.149 MB / 0.5413 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005672/0.3739, allocations: 0.8665 MB / 0.5422 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007185/0.3747, allocations: 0.5611 MB / 0.5427 GB, free: 9.805 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.949e-05/0.3747, allocations: 309.1 kB / 0.543 GB, free: 9.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.3763, allocations: 1.009 MB / 0.544 GB, free: 8.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.3784, allocations: 1.905 MB / 0.5459 GB, free: 6.191 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/0.3824, allocations: 3.196 MB / 0.549 GB, free: 2.574 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.3824, allocations: 8 kB / 0.549 GB, free: 2.566 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.008812/0.3912, allocations: 4.133 MB / 0.553 GB, free: 14.36 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.3912, allocations: 19.94 kB / 0.5531 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.3913, allocations: 28 kB / 0.5531 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005345/0.3966, allocations: 1.357 MB / 0.5544 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.3986, allocations: 0.6514 MB / 0.555 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009909/0.4085, allocations: 8.286 MB / 0.5631 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.41, allocations: 103.9 kB / 0.5632 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002259/0.4103, allocations: 171.9 kB / 0.5634 GB, free: 3.312 MB / 430.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.0007748/0.4111, allocations: 0.5086 MB / 0.5639 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003292/0.4114, allocations: 201.5 kB / 0.5641 GB, free: 2.594 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009033/0.4204, allocations: 3.883 MB / 0.5679 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.4205, allocations: 25.12 kB / 0.5679 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4205, allocations: 4 kB / 0.5679 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.303e-05/0.4205, allocations: 15.94 kB / 0.5679 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.432, allocations: 6.323 MB / 0.5741 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.432, allocations: 4 kB / 0.5741 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/0.4336, allocations: 435.7 kB / 0.5745 GB, free: 7.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005014/0.4386, allocations: 1.272 MB / 0.5758 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/0.4388, allocations: 99.92 kB / 0.5759 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008516/0.4473, allocations: 7.794 MB / 0.5835 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.4473, allocations: 4 kB / 0.5835 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009742/0.4571, allocations: 5.046 MB / 0.5884 GB, free: 8.859 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.4573, allocations: 254.5 kB / 0.5886 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.4576, allocations: 52 kB / 0.5887 GB, free: 8.539 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.4587, allocations: 59.98 kB / 0.5887 GB, free: 8.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003911/0.4591, allocations: 229.7 kB / 0.589 GB, free: 8.254 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/0.4593, allocations: 115.9 kB / 0.5891 GB, free: 8.141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007555/0.4601, allocations: 0.7272 MB / 0.5898 GB, free: 7.414 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4601, allocations: 0 / 0.5898 GB, free: 7.414 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003353/0.4634, allocations: 1.483 MB / 0.5912 GB, free: 5.93 MB / 462.1 MB 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.1432/0.6067, allocations: 6.981 MB / 0.5981 GB, free: 136.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008558/0.6152, allocations: 3.956 MB / 0.6019 GB, free: 136.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6153, allocations: 0 / 0.6019 GB, free: 136.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.6178, allocations: 2.024 MB / 0.6039 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/0.6196, allocations: 403.5 kB / 0.6043 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02731/0.6469, allocations: 21.81 MB / 0.6256 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008507/0.6478, allocations: 1.595 MB / 0.6271 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00195/0.6497, allocations: 0.5008 MB / 0.6276 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.6509, allocations: 1.192 MB / 0.6288 GB, free: 122.7 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6509, allocations: 0 / 0.6288 GB, free: 122.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08186/0.7328, allocations: 72.84 MB / 0.6999 GB, free: 66.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.35, allocations: 15.67 kB / 0.6999 GB, free: 66.68 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)