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.001701/0.001701, allocations: 108 kB / 15.61 MB, free: 152 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.001981/0.001981, allocations: 195.9 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.123/2.123, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5158/0.5158, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 59.91 kB / 370.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2373, allocations: 53.61 MB / 424 MB, free: 14.2 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.9084/1.146, allocations: 28.22 MB / 452.3 MB, free: 38.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04923/1.195, allocations: 28.27 MB / 480.5 MB, free: 23.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003029/1.198, allocations: 23 kB / 480.6 MB, free: 23.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004908/1.203, allocations: 0.6691 MB / 481.2 MB, free: 22.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0105/1.214, allocations: 1.313 MB / 482.5 MB, free: 22.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02945/1.243, allocations: 4.259 MB / 486.8 MB, free: 19.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009315/1.253, allocations: 2.178 MB / 489 MB, free: 18.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004355/1.257, allocations: 1.149 MB / 490.1 MB, free: 18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005386/1.263, allocations: 1.017 MB / 491.1 MB, free: 17.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006078/1.269, allocations: 1.124 MB / 492.3 MB, free: 17.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001827/1.271, allocations: 176.2 kB / 492.4 MB, free: 17.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0298/1.301, allocations: 2.667 MB / 495.1 MB, free: 16.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002262/1.303, allocations: 480.3 kB / 495.6 MB, free: 16.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003757/1.307, allocations: 0.9817 MB / 496.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02739/1.334, allocations: 4.998 MB / 0.4898 GB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.138e-05/1.334, allocations: 0 / 0.4898 GB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.118e-06/1.334, allocations: 0 / 0.4898 GB, free: 13.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001461/1.334, allocations: 0 / 0.4898 GB, free: 13.48 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.01279/1.347, allocations: 2.537 MB / 0.4923 GB, free: 11.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.367e-05/1.347, allocations: 11.39 kB / 0.4923 GB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004897/1.348, allocations: 214.2 kB / 0.4925 GB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003882/1.352, allocations: 0.5177 MB / 0.493 GB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008826/1.361, allocations: 1.197 MB / 0.4942 GB, free: 11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003326/1.361, allocations: 169.3 kB / 0.4943 GB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001003/1.362, allocations: 144 kB / 0.4945 GB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006147/1.368, allocations: 2.023 MB / 0.4964 GB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.478e-05/1.368, allocations: 4 kB / 0.4964 GB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002792/1.369, allocations: 60 kB / 0.4965 GB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.464e-05/1.369, allocations: 36.61 kB / 0.4965 GB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006814/1.376, allocations: 2.772 MB / 0.4992 GB, free: 7.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/1.398, allocations: 6.608 MB / 0.5057 GB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002849/1.401, allocations: 1.072 MB / 0.5067 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/1.402, allocations: 0.5596 MB / 0.5073 GB, free: 24 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02233/1.425, allocations: 8.399 MB / 0.5155 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.679e-05/1.425, allocations: 43 kB / 0.5155 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007611/1.425, allocations: 98.59 kB / 0.5156 GB, free: 6.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 5.441e-06/1.425, allocations: 0 / 0.5156 GB, free: 6.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.003106/1.429, allocations: 1.005 MB / 0.5166 GB, free: 5.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/1.429, allocations: 115.2 kB / 0.5167 GB, free: 5.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/1.431, allocations: 1.237 MB / 0.5179 GB, free: 4.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/1.431, allocations: 33.7 kB / 0.518 GB, free: 3.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/1.432, allocations: 0.9667 MB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/1.433, allocations: 193.5 kB / 0.5191 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006424/1.433, allocations: 347.3 kB / 0.5194 GB, free: 2.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/1.434, allocations: 301.1 kB / 0.5197 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/1.434, allocations: 307.8 kB / 0.52 GB, free: 1.852 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002048/1.436, allocations: 1.32 MB / 0.5213 GB, free: 24 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003479/1.44, allocations: 1.807 MB / 0.5231 GB, free: 13.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.81e-05/1.44, allocations: 12 kB / 0.5231 GB, free: 13.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005542/1.446, allocations: 1.682 MB / 0.5247 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.125e-05/1.446, allocations: 22.03 kB / 0.5247 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.829e-05/1.446, allocations: 36 kB / 0.5248 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/1.447, allocations: 173.9 kB / 0.5249 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002167/1.449, allocations: 483.2 kB / 0.5254 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004481/1.453, allocations: 4.085 MB / 0.5294 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/1.456, allocations: 87.66 kB / 0.5295 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/1.456, allocations: 132.1 kB / 0.5296 GB, free: 6.656 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.001061/1.457, allocations: 384.9 kB / 0.53 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005448/1.458, allocations: 134.2 kB / 0.5301 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004397/1.462, allocations: 1.381 MB / 0.5314 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/1.462, allocations: 0 / 0.5314 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.462, allocations: 4 kB / 0.5314 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.462, allocations: 7.922 kB / 0.5314 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004042/1.466, allocations: 1.522 MB / 0.5329 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/1.466, allocations: 0 / 0.5329 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/1.467, allocations: 83.81 kB / 0.533 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/1.468, allocations: 167.6 kB / 0.5332 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/1.468, allocations: 12 kB / 0.5332 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008839/1.477, allocations: 3.955 MB / 0.537 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/1.477, allocations: 7.938 kB / 0.537 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/1.479, allocations: 0.9768 MB / 0.538 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006626/1.48, allocations: 203.3 kB / 0.5382 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006231/1.481, allocations: 12 kB / 0.5382 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/1.482, allocations: 11.98 kB / 0.5382 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/1.482, allocations: 47.91 kB / 0.5383 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-05/1.482, allocations: 19.98 kB / 0.5383 GB, free: 13.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.006922/1.489, allocations: 0.9631 MB / 0.5392 GB, free: 12.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.489, allocations: 0 / 0.5392 GB, free: 12.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005076/1.494, allocations: 0.8502 MB / 0.5401 GB, free: 11.29 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.007493/1.502, allocations: 2.462 MB / 0.5425 GB, free: 8.758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003844/1.506, allocations: 0.9217 MB / 0.5434 GB, free: 7.844 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.506, allocations: 384 / 0.5434 GB, free: 7.844 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/1.507, allocations: 417.1 kB / 0.5438 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003172/1.51, allocations: 241.5 kB / 0.544 GB, free: 7.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/1.545, allocations: 12.76 MB / 0.5564 GB, free: 8.973 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/1.547, allocations: 1.188 MB / 0.5576 GB, free: 7.754 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002693/1.549, allocations: 400.3 kB / 0.558 GB, free: 7.363 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001576/1.551, allocations: 0.6772 MB / 0.5586 GB, free: 6.688 MB / 430.1 MB Notification: Performance of SimCode: time 2.134e-06/1.551, allocations: 0 / 0.5586 GB, free: 6.688 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5934/2.144, allocations: 39.02 MB / 0.5968 GB, free: 137.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.16/27.3, allocations: 10.66 kB / 0.5968 GB, free: 137.4 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)