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.0009946/0.0009945, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001078/0.001078, allocations: 197.8 kB / 16.14 MB, free: 6.688 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.222/1.222, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1745/0.1745, allocations: 15.31 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 55.91 kB / 369.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07803/0.07913, allocations: 53.61 MB / 423.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01135/0.09052, allocations: 13.32 MB / 436.7 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1668/0.2573, allocations: 33.71 MB / 470.4 MB, free: 27.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.259, allocations: 58.16 kB / 470.4 MB, free: 27.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.2605, allocations: 0.6697 MB / 471.1 MB, free: 26.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005057/0.2656, allocations: 2.444 MB / 473.6 MB, free: 25.28 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008285/0.2739, allocations: 3.872 MB / 477.4 MB, free: 22.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002818/0.2767, allocations: 3.294 MB / 480.7 MB, free: 21.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.2782, allocations: 1.784 MB / 482.5 MB, free: 20.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001445/0.2797, allocations: 1.607 MB / 484.1 MB, free: 20.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001899/0.2816, allocations: 1.821 MB / 485.9 MB, free: 19.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004456/0.282, allocations: 216.2 kB / 486.1 MB, free: 19.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01064/0.2927, allocations: 3.644 MB / 489.8 MB, free: 18.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.2938, allocations: 0.6625 MB / 490.5 MB, free: 18.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002052/0.2958, allocations: 1.488 MB / 491.9 MB, free: 17.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01307/0.3089, allocations: 6.811 MB / 498.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.309, allocations: 0 / 498.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.309, allocations: 4 kB / 498.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.815e-05/0.309, allocations: 0 / 498.8 MB, free: 14.42 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.007208/0.3162, allocations: 3.695 MB / 0.4907 GB, free: 12.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3163, allocations: 10.53 kB / 0.4907 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004006/0.3167, allocations: 368.6 kB / 0.491 GB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002483/0.3192, allocations: 0.6186 MB / 0.4916 GB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002168/0.3214, allocations: 1.45 MB / 0.4931 GB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.3215, allocations: 265.6 kB / 0.4933 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003706/0.3219, allocations: 267.1 kB / 0.4936 GB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004239/0.3262, allocations: 3.118 MB / 0.4966 GB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/0.3262, allocations: 0 / 0.4966 GB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000232/0.3265, allocations: 110.1 kB / 0.4967 GB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.131e-05/0.3265, allocations: 62.91 kB / 0.4968 GB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004699/0.3312, allocations: 3.85 MB / 0.5005 GB, free: 6.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.0134/0.3446, allocations: 9.904 MB / 0.5102 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.349, allocations: 3.471 MB / 0.5136 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.3508, allocations: 1.344 MB / 0.5149 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01385/0.3647, allocations: 10.88 MB / 0.5255 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.3648, allocations: 56.56 kB / 0.5256 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008699/0.3656, allocations: 201.9 kB / 0.5258 GB, free: 11.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 3.507e-06/0.3657, allocations: 0 / 0.5258 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04577/0.4114, allocations: 12.26 MB / 0.5378 GB, free: 14.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.4115, allocations: 81.34 kB / 0.5378 GB, free: 14.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/0.4129, allocations: 1.168 MB / 0.539 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002225/0.4132, allocations: 69.7 kB / 0.539 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006476/0.4138, allocations: 1.149 MB / 0.5402 GB, free: 12.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006938/0.4145, allocations: 0.8626 MB / 0.541 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008243/0.4154, allocations: 0.5572 MB / 0.5415 GB, free: 10.83 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.968e-05/0.4154, allocations: 305.1 kB / 0.5418 GB, free: 10.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.4172, allocations: 1.009 MB / 0.5428 GB, free: 9.516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/0.4195, allocations: 1.909 MB / 0.5447 GB, free: 7.215 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004568/0.4241, allocations: 3.2 MB / 0.5478 GB, free: 3.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/0.4242, allocations: 8 kB / 0.5478 GB, free: 3.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01033/0.4345, allocations: 4.129 MB / 0.5519 GB, free: 15.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.4345, allocations: 20 kB / 0.5519 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-05/0.4346, allocations: 28 kB / 0.5519 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006245/0.4408, allocations: 1.354 MB / 0.5532 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.4431, allocations: 0.6552 MB / 0.5539 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.454, allocations: 7.685 MB / 0.5614 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002453/0.4565, allocations: 163.7 kB / 0.5615 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004169/0.4569, allocations: 171.9 kB / 0.5617 GB, free: 4.887 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.001154/0.4581, allocations: 0.524 MB / 0.5622 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005002/0.4586, allocations: 197.5 kB / 0.5624 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/0.4688, allocations: 3.88 MB / 0.5662 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.4688, allocations: 28 kB / 0.5662 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.4688, allocations: 4 kB / 0.5662 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.152e-05/0.4688, allocations: 15.95 kB / 0.5662 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/0.4817, allocations: 6.339 MB / 0.5724 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.4818, allocations: 4.062 kB / 0.5724 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/0.4836, allocations: 435.4 kB / 0.5728 GB, free: 9.238 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005867/0.4895, allocations: 1.279 MB / 0.5741 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000274/0.4898, allocations: 99.92 kB / 0.5742 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009207/0.499, allocations: 7.217 MB / 0.5812 GB, free: 204 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.499, allocations: 3.984 kB / 0.5812 GB, free: 200 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/0.5113, allocations: 5.031 MB / 0.5861 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005735/0.5119, allocations: 254.5 kB / 0.5864 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004854/0.5124, allocations: 55.94 kB / 0.5864 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/0.5141, allocations: 95.8 kB / 0.5865 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005285/0.5146, allocations: 229.8 kB / 0.5867 GB, free: 10.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002434/0.5149, allocations: 107.9 kB / 0.5868 GB, free: 10.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001006/0.5159, allocations: 0.735 MB / 0.5876 GB, free: 9.527 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5159, allocations: 0 / 0.5876 GB, free: 9.527 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004331/0.5202, allocations: 1.464 MB / 0.589 GB, free: 8.062 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.01469/0.5349, allocations: 7.008 MB / 0.5958 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1481/0.6831, allocations: 3.487 MB / 0.5992 GB, free: 135.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6831, allocations: 6.406 kB / 0.5992 GB, free: 135.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002934/0.686, allocations: 2.021 MB / 0.6012 GB, free: 135.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.6879, allocations: 362.4 kB / 0.6016 GB, free: 135.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03191/0.7198, allocations: 22.93 MB / 0.624 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000908/0.7207, allocations: 1.599 MB / 0.6255 GB, free: 122.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002162/0.7229, allocations: 0.5129 MB / 0.626 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/0.7242, allocations: 1.186 MB / 0.6272 GB, free: 121.4 MB / 462.1 MB Notification: Performance of SimCode: time 7.42e-07/0.7242, allocations: 0 / 0.6272 GB, free: 121.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07728/0.8015, allocations: 70.83 MB / 0.6963 GB, free: 69.86 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.8017, allocations: 199.8 kB / 0.6965 GB, free: 69.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.739/4.54, allocations: 0 / 0.6965 GB, free: 69.61 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)