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.000886/0.000886, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.004654/0.004654, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2159/0.2159, allocations: 15.28 MB / 306.7 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003103, allocations: 8 kB / 372.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2551, allocations: 54.62 MB / 426.8 MB, free: 40.17 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.02752/0.2827, allocations: 28.97 MB / 455.8 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02419/0.3069, allocations: 27.89 MB / 483.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.3087, allocations: 43.62 kB / 483.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.3105, allocations: 0.6207 MB / 484.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003675/0.3142, allocations: 1.217 MB / 485.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01016/0.3244, allocations: 3.735 MB / 489.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002484/0.3269, allocations: 2.132 MB / 491.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.3282, allocations: 0.9521 MB / 492.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.3295, allocations: 0.9683 MB / 493.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.331, allocations: 1.064 MB / 494.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004405/0.3314, allocations: 92 kB / 494.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007811/0.3393, allocations: 2.612 MB / 497.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006514/0.3399, allocations: 404 kB / 497.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001401/0.3413, allocations: 0.9193 MB / 498.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.3533, allocations: 4.652 MB / 0.4913 GB, free: 8.508 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3534, allocations: 0 / 0.4913 GB, free: 8.508 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3534, allocations: 0 / 0.4913 GB, free: 8.508 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.609e-05/0.3535, allocations: 0 / 0.4913 GB, free: 8.508 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.004834/0.3583, allocations: 2.123 MB / 0.4934 GB, free: 6.535 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3584, allocations: 12.03 kB / 0.4934 GB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005592/0.3589, allocations: 211 kB / 0.4936 GB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00245/0.3614, allocations: 0.525 MB / 0.4941 GB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.3636, allocations: 1.16 MB / 0.4952 GB, free: 4.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.3638, allocations: 171.9 kB / 0.4954 GB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004317/0.3642, allocations: 147.9 kB / 0.4955 GB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003972/0.3682, allocations: 2.015 MB / 0.4975 GB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.805e-05/0.3682, allocations: 8.562 kB / 0.4975 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.3685, allocations: 60 kB / 0.4976 GB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.511e-05/0.3685, allocations: 36 kB / 0.4976 GB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004459/0.373, allocations: 2.766 MB / 0.5003 GB, free: 284 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009902/0.3829, allocations: 6.535 MB / 0.5067 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.3847, allocations: 1.068 MB / 0.5077 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000902/0.3856, allocations: 0.5598 MB / 0.5083 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01024/0.3959, allocations: 8.212 MB / 0.5163 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3959, allocations: 46.94 kB / 0.5163 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003702/0.3963, allocations: 94.59 kB / 0.5164 GB, free: 14.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 3.096e-06/0.3963, allocations: 4 kB / 0.5164 GB, free: 14.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.001786/0.3981, allocations: 0.9973 MB / 0.5174 GB, free: 13.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.3982, allocations: 119.1 kB / 0.5175 GB, free: 13.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.3997, allocations: 1.237 MB / 0.5187 GB, free: 12.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.3998, allocations: 33.7 kB / 0.5188 GB, free: 12.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005888/0.4004, allocations: 0.9629 MB / 0.5197 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.4005, allocations: 197.4 kB / 0.5199 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.4007, allocations: 117.7 kB / 0.52 GB, free: 10.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.098e-05/0.4008, allocations: 305.2 kB / 0.5203 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.4013, allocations: 315.8 kB / 0.5206 GB, free: 10.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.4025, allocations: 1.32 MB / 0.5219 GB, free: 8.289 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.4044, allocations: 1.811 MB / 0.5236 GB, free: 5.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.4044, allocations: 8 kB / 0.5236 GB, free: 5.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002725/0.4072, allocations: 1.694 MB / 0.5253 GB, free: 4.254 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.4072, allocations: 20 kB / 0.5253 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.402e-05/0.4073, allocations: 40 kB / 0.5254 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006347/0.4079, allocations: 161.4 kB / 0.5255 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.4092, allocations: 483.5 kB / 0.526 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/0.4121, allocations: 3.891 MB / 0.5298 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.4132, allocations: 91.81 kB / 0.5299 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/0.4134, allocations: 128 kB / 0.53 GB, free: 15.13 MB / 414.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.0006578/0.414, allocations: 380.9 kB / 0.5303 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.4143, allocations: 138.2 kB / 0.5305 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002772/0.4171, allocations: 1.377 MB / 0.5318 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.4171, allocations: 4 kB / 0.5318 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4171, allocations: 3.938 kB / 0.5318 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.4171, allocations: 15.92 kB / 0.5318 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002457/0.4196, allocations: 1.497 MB / 0.5333 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.4196, allocations: 4 kB / 0.5333 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.4199, allocations: 75.88 kB / 0.5334 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000732/0.4207, allocations: 179.5 kB / 0.5336 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.4207, allocations: 15.98 kB / 0.5336 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002399/0.4231, allocations: 3.75 MB / 0.5372 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.4231, allocations: 7.938 kB / 0.5372 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.4244, allocations: 0.973 MB / 0.5382 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.4248, allocations: 259.1 kB / 0.5384 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002146/0.4251, allocations: 11.98 kB / 0.5385 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004587/0.4255, allocations: 15.94 kB / 0.5385 GB, free: 5.801 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.4256, allocations: 43.95 kB / 0.5385 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.4257, allocations: 20 kB / 0.5385 GB, free: 5.738 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001417/0.4271, allocations: 0.967 MB / 0.5395 GB, free: 4.777 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4271, allocations: 0 / 0.5395 GB, free: 4.777 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002736/0.4298, allocations: 0.8385 MB / 0.5403 GB, free: 3.938 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.003577/0.4334, allocations: 2.471 MB / 0.5427 GB, free: 1.398 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.4352, allocations: 0.9018 MB / 0.5436 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4352, allocations: 3.938 kB / 0.5436 GB, free: 0.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004993/0.4358, allocations: 402.6 kB / 0.544 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.4377, allocations: 226.8 kB / 0.5442 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/0.4547, allocations: 13.41 MB / 0.5573 GB, free: 1.004 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007943/0.4556, allocations: 1.189 MB / 0.5584 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001564/0.4572, allocations: 417 kB / 0.5588 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008652/0.458, allocations: 0.6813 MB / 0.5595 GB, free: 14.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4581, allocations: 0 / 0.5595 GB, free: 14.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2443/0.7024, allocations: 38.13 MB / 0.5967 GB, free: 131.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001376/0.7026, allocations: 238.8 kB / 0.597 GB, free: 130.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.668/3.37, allocations: 0 / 0.597 GB, free: 130.9 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)