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.005135/0.005135, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001137/0.001137, allocations: 198.4 kB / 16.68 MB, free: 5.938 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: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07793/0.07793, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 60.12 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.09036, allocations: 53.61 MB / 478.3 MB, free: 6.273 MB / 350.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.03539/0.1258, allocations: 28.24 MB / 0.4947 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.218/0.3438, allocations: 28.25 MB / 0.5223 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.345, allocations: 22.16 kB / 0.5223 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.3466, allocations: 0.6772 MB / 0.5229 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003179/0.3498, allocations: 1.31 MB / 0.5242 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01132/0.3611, allocations: 4.252 MB / 0.5284 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003021/0.3642, allocations: 2.201 MB / 0.5305 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.3655, allocations: 1.151 MB / 0.5316 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001086/0.3666, allocations: 1.025 MB / 0.5326 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.3678, allocations: 1.127 MB / 0.5337 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000256/0.368, allocations: 176.9 kB / 0.5339 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008993/0.377, allocations: 2.659 MB / 0.5365 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005238/0.3776, allocations: 482.7 kB / 0.537 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.3786, allocations: 0.9765 MB / 0.5379 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.3895, allocations: 5.037 MB / 0.5428 GB, free: 3.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3896, allocations: 0 / 0.5428 GB, free: 3.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3896, allocations: 2.594 kB / 0.5428 GB, free: 3.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.403e-05/0.3896, allocations: 0 / 0.5428 GB, free: 3.824 MB / 382.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.003645/0.3933, allocations: 2.53 MB / 0.5453 GB, free: 2.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3933, allocations: 10.25 kB / 0.5453 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002103/0.3935, allocations: 217.1 kB / 0.5455 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002104/0.3956, allocations: 0.5165 MB / 0.546 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.3972, allocations: 1.235 MB / 0.5472 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.3974, allocations: 165.6 kB / 0.5474 GB, free: 16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002506/0.3976, allocations: 147.9 kB / 0.5475 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/0.4007, allocations: 2.024 MB / 0.5495 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.4007, allocations: 0 / 0.5495 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001815/0.4009, allocations: 64 kB / 0.5496 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/0.4009, allocations: 38.62 kB / 0.5496 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003893/0.4048, allocations: 2.76 MB / 0.5523 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009254/0.4141, allocations: 6.6 MB / 0.5588 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.4159, allocations: 1.059 MB / 0.5598 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008507/0.4167, allocations: 0.5624 MB / 0.5603 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.4279, allocations: 8.392 MB / 0.5685 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.428, allocations: 42.94 kB / 0.5686 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003522/0.4284, allocations: 109.2 kB / 0.5687 GB, free: 8.922 MB / 414.1 MB Notification: Performance of pre-optimization done (n=50): time 2.044e-06/0.4284, allocations: 0 / 0.5687 GB, free: 8.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=50): time 0.001765/0.4301, allocations: 0.9958 MB / 0.5697 GB, free: 7.879 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.4302, allocations: 111.2 kB / 0.5698 GB, free: 7.746 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.4316, allocations: 1.241 MB / 0.571 GB, free: 6.496 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.4317, allocations: 37.7 kB / 0.571 GB, free: 6.453 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006057/0.4323, allocations: 0.959 MB / 0.5719 GB, free: 5.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.4324, allocations: 204.1 kB / 0.5721 GB, free: 5.281 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003804/0.4328, allocations: 335.1 kB / 0.5725 GB, free: 4.945 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.4329, allocations: 301.1 kB / 0.5727 GB, free: 4.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000508/0.4334, allocations: 315.8 kB / 0.573 GB, free: 4.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.4346, allocations: 1.316 MB / 0.5743 GB, free: 2.547 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.4365, allocations: 1.811 MB / 0.5761 GB, free: 312 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.4365, allocations: 10.62 kB / 0.5761 GB, free: 304 kB / 414.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002554/0.4391, allocations: 1.69 MB / 0.5778 GB, free: 14.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.4391, allocations: 20 kB / 0.5778 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/0.4391, allocations: 40 kB / 0.5778 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006034/0.4398, allocations: 160.3 kB / 0.578 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.4411, allocations: 481.9 kB / 0.5784 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002876/0.444, allocations: 4.085 MB / 0.5824 GB, free: 9.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.445, allocations: 89.06 kB / 0.5825 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.4452, allocations: 131.9 kB / 0.5826 GB, free: 9.309 MB / 430.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.0005705/0.4457, allocations: 385.7 kB / 0.583 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002215/0.446, allocations: 138.2 kB / 0.5831 GB, free: 8.785 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.4483, allocations: 1.382 MB / 0.5845 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4483, allocations: 6.656 kB / 0.5845 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.4483, allocations: 0 / 0.5845 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.4483, allocations: 4 kB / 0.5845 GB, free: 7.406 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.4506, allocations: 1.517 MB / 0.586 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4506, allocations: 4 kB / 0.586 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.4509, allocations: 71.89 kB / 0.586 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006873/0.4516, allocations: 184.3 kB / 0.5862 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.4517, allocations: 12 kB / 0.5862 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.4543, allocations: 3.949 MB / 0.5901 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4543, allocations: 0 / 0.5901 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.4556, allocations: 0.9814 MB / 0.591 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.4559, allocations: 203.4 kB / 0.5912 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.4561, allocations: 8 kB / 0.5912 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.4565, allocations: 15.94 kB / 0.5913 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.4566, allocations: 46.5 kB / 0.5913 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.848e-05/0.4566, allocations: 12 kB / 0.5913 GB, free: 15.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.4578, allocations: 0.9708 MB / 0.5923 GB, free: 14.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4578, allocations: 0 / 0.5923 GB, free: 14.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002356/0.4601, allocations: 0.8463 MB / 0.5931 GB, free: 14.11 MB / 446.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.00324/0.4634, allocations: 2.47 MB / 0.5955 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.4653, allocations: 0.9157 MB / 0.5964 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4653, allocations: 0 / 0.5964 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.4659, allocations: 416.3 kB / 0.5968 GB, free: 10.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.4671, allocations: 233.5 kB / 0.597 GB, free: 10.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.4811, allocations: 11.78 MB / 0.6085 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007339/0.4819, allocations: 1.188 MB / 0.6097 GB, free: 12.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001126/0.483, allocations: 397.1 kB / 0.6101 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007727/0.4838, allocations: 0.6838 MB / 0.6107 GB, free: 11.05 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4838, allocations: 0 / 0.6107 GB, free: 11.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07314/0.5569, allocations: 39.98 MB / 0.6498 GB, free: 3.414 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.59, allocations: 14.27 kB / 0.6498 GB, free: 3.402 MB / 494.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)