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: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",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.001267/0.001267, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001317/0.001317, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.288/1.288, allocations: 222.9 MB / 239.9 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2067/0.2067, allocations: 15.31 MB / 305.4 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.91 kB / 369.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09476, allocations: 53.61 MB / 423.6 MB, free: 14.6 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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.1-master/package.mo:4740:7-4740: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.3184/0.4132, allocations: 29.45 MB / 453 MB, free: 38.47 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.4349, allocations: 27.94 MB / 480.9 MB, free: 23.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.4364, allocations: 48.31 kB / 481 MB, free: 23.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.4379, allocations: 0.6186 MB / 481.6 MB, free: 23.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002869/0.4408, allocations: 1.22 MB / 482.8 MB, free: 22.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009772/0.4506, allocations: 3.816 MB / 486.6 MB, free: 20.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002399/0.453, allocations: 2.193 MB / 488.8 MB, free: 19.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.4541, allocations: 1.153 MB / 490 MB, free: 18.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.4552, allocations: 1.077 MB / 491.1 MB, free: 18.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.4563, allocations: 1.153 MB / 492.2 MB, free: 17.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002452/0.4566, allocations: 176.5 kB / 492.4 MB, free: 17.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007545/0.4641, allocations: 2.734 MB / 495.1 MB, free: 17.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003281/0.4645, allocations: 493.2 kB / 495.6 MB, free: 17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006853/0.4651, allocations: 0.9915 MB / 496.6 MB, free: 16.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006921/0.4721, allocations: 4.805 MB / 0.4897 GB, free: 14.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4721, allocations: 0 / 0.4897 GB, free: 14.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4721, allocations: 0 / 0.4897 GB, free: 14.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.4721, allocations: 4.656 kB / 0.4897 GB, free: 14.4 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.003487/0.4756, allocations: 2.529 MB / 0.4921 GB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.4757, allocations: 8.906 kB / 0.4921 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002376/0.4759, allocations: 220.5 kB / 0.4924 GB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002109/0.478, allocations: 0.5163 MB / 0.4929 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.4796, allocations: 1.195 MB / 0.494 GB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.4797, allocations: 167.2 kB / 0.4942 GB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.4799, allocations: 144.8 kB / 0.4943 GB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002743/0.4827, allocations: 2.022 MB / 0.4963 GB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.151e-05/0.4827, allocations: 0 / 0.4963 GB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000165/0.4829, allocations: 60 kB / 0.4964 GB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.4829, allocations: 36.61 kB / 0.4964 GB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003366/0.4863, allocations: 2.776 MB / 0.4991 GB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008219/0.4945, allocations: 6.615 MB / 0.5056 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.4961, allocations: 1.063 MB / 0.5066 GB, free: 256 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008134/0.4969, allocations: 0.5538 MB / 0.5071 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/0.5079, allocations: 8.427 MB / 0.5154 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.508, allocations: 39 kB / 0.5154 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003828/0.5084, allocations: 106.6 kB / 0.5155 GB, free: 6.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.514e-06/0.5084, allocations: 0 / 0.5155 GB, free: 6.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001783/0.5102, allocations: 1.001 MB / 0.5165 GB, free: 5.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.5102, allocations: 115.2 kB / 0.5166 GB, free: 5.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.5116, allocations: 1.237 MB / 0.5178 GB, free: 4.059 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.5116, allocations: 37.7 kB / 0.5178 GB, free: 4.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006035/0.5122, allocations: 0.9667 MB / 0.5188 GB, free: 3.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.5124, allocations: 189.5 kB / 0.519 GB, free: 2.848 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000374/0.5128, allocations: 343 kB / 0.5193 GB, free: 2.508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.5129, allocations: 305.1 kB / 0.5196 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005015/0.5134, allocations: 303.8 kB / 0.5199 GB, free: 1.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.5144, allocations: 1.32 MB / 0.5212 GB, free: 84 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.5164, allocations: 1.819 MB / 0.5229 GB, free: 13.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/0.5164, allocations: 12 kB / 0.5229 GB, free: 13.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002499/0.5189, allocations: 1.678 MB / 0.5246 GB, free: 12.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.5189, allocations: 24.03 kB / 0.5246 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.245e-05/0.519, allocations: 36 kB / 0.5246 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006362/0.5196, allocations: 165.3 kB / 0.5248 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.5209, allocations: 487.2 kB / 0.5253 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.5236, allocations: 4.081 MB / 0.5292 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009743/0.5246, allocations: 99.89 kB / 0.5293 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.5247, allocations: 128 kB / 0.5295 GB, free: 6.707 MB / 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.00053/0.5252, allocations: 380.9 kB / 0.5298 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.5255, allocations: 138.2 kB / 0.53 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.528, allocations: 1.382 MB / 0.5313 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5281, allocations: 7.938 kB / 0.5313 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.5281, allocations: 4 kB / 0.5313 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.5281, allocations: 3.984 kB / 0.5313 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.5302, allocations: 1.511 MB / 0.5328 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.5303, allocations: 4 kB / 0.5328 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.5306, allocations: 79.83 kB / 0.5329 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007048/0.5313, allocations: 175.4 kB / 0.533 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/0.5313, allocations: 15.94 kB / 0.5331 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002451/0.5338, allocations: 3.955 MB / 0.5369 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5338, allocations: 8 kB / 0.5369 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.535, allocations: 0.973 MB / 0.5379 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.5352, allocations: 211.3 kB / 0.5381 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.5354, allocations: 8 kB / 0.5381 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.5359, allocations: 12 kB / 0.5381 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.88e-05/0.5359, allocations: 47.83 kB / 0.5381 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.536, allocations: 16 kB / 0.5382 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.5371, allocations: 0.967 MB / 0.5391 GB, free: 12.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5371, allocations: 8 kB / 0.5391 GB, free: 12.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002213/0.5393, allocations: 0.8385 MB / 0.5399 GB, free: 11.34 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.002984/0.5423, allocations: 2.467 MB / 0.5423 GB, free: 8.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.544, allocations: 0.9139 MB / 0.5432 GB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.544, allocations: 7.938 kB / 0.5432 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000493/0.5445, allocations: 413.9 kB / 0.5436 GB, free: 7.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.5458, allocations: 231.1 kB / 0.5439 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.5606, allocations: 13.31 MB / 0.5569 GB, free: 8.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007191/0.5614, allocations: 1.189 MB / 0.558 GB, free: 7.262 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001477/0.5629, allocations: 413 kB / 0.5584 GB, free: 6.859 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007864/0.5637, allocations: 0.6778 MB / 0.5591 GB, free: 6.184 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5637, allocations: 0 / 0.5591 GB, free: 6.184 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2007/0.7643, allocations: 39.09 MB / 0.5973 GB, free: 130.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001269/0.7645, allocations: 238.8 kB / 0.5975 GB, free: 130 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.768/3.532, allocations: 0 / 0.5975 GB, free: 130 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)