Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",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.00104/0.00104, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001055/0.001055, allocations: 194.7 kB / 16.26 MB, free: 6.621 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.258/1.258, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1928/0.1928, allocations: 15.32 MB / 305.4 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.91 kB / 369.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1108, allocations: 53.61 MB / 423.5 MB, free: 14.55 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.StandardElectrochemicalCell): time 0.3216/0.4325, allocations: 28.07 MB / 451.6 MB, free: 38.99 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.4495, allocations: 21.36 MB / 473 MB, free: 28.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.4507, allocations: 39.62 kB / 473 MB, free: 28.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.452, allocations: 495.2 kB / 473.5 MB, free: 28.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002301/0.4543, allocations: 0.9336 MB / 474.4 MB, free: 27.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007548/0.4618, allocations: 2.934 MB / 477.4 MB, free: 25.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002128/0.464, allocations: 1.81 MB / 479.2 MB, free: 25.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009108/0.4649, allocations: 0.9455 MB / 480.1 MB, free: 24.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008008/0.4657, allocations: 0.8249 MB / 480.9 MB, free: 24.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008071/0.4665, allocations: 0.894 MB / 481.8 MB, free: 23.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.4667, allocations: 148.2 kB / 482 MB, free: 23.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006033/0.4728, allocations: 2.107 MB / 484.1 MB, free: 23.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003554/0.4731, allocations: 390.1 kB / 484.5 MB, free: 23.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007964/0.474, allocations: 0.8161 MB / 485.3 MB, free: 22.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007794/0.4818, allocations: 3.767 MB / 489.1 MB, free: 21.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4818, allocations: 4 kB / 489.1 MB, free: 21.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4818, allocations: 0 / 489.1 MB, free: 21.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.489e-05/0.4818, allocations: 4.969 kB / 489.1 MB, free: 21.04 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.00297/0.4848, allocations: 2.081 MB / 491.1 MB, free: 19.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4849, allocations: 9.969 kB / 491.2 MB, free: 19.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001772/0.485, allocations: 197.8 kB / 491.3 MB, free: 19.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001629/0.4867, allocations: 435.9 kB / 491.8 MB, free: 19.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.488, allocations: 1.006 MB / 492.8 MB, free: 18.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.79e-05/0.4881, allocations: 156.4 kB / 492.9 MB, free: 18.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.4882, allocations: 123.1 kB / 493.1 MB, free: 18.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002322/0.4906, allocations: 1.747 MB / 494.8 MB, free: 18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.4906, allocations: 3.938 kB / 494.8 MB, free: 17.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.4907, allocations: 54.62 kB / 494.9 MB, free: 17.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.4908, allocations: 33.53 kB / 494.9 MB, free: 17.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002706/0.4935, allocations: 2.317 MB / 497.2 MB, free: 17.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006509/0.5, allocations: 5.575 MB / 0.491 GB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.5012, allocations: 0.7278 MB / 0.4917 GB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005161/0.5017, allocations: 370.4 kB / 0.4921 GB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006461/0.5082, allocations: 5.714 MB / 0.4976 GB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.5082, allocations: 43.22 kB / 0.4977 GB, free: 7.848 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.765e-06/0.5083, allocations: 7.938 kB / 0.4977 GB, free: 7.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001277/0.5095, allocations: 0.7849 MB / 0.4985 GB, free: 7.062 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.5096, allocations: 115.4 kB / 0.4986 GB, free: 6.926 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.5108, allocations: 1.29 MB / 0.4998 GB, free: 5.809 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.5108, allocations: 33.7 kB / 0.4999 GB, free: 5.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/0.5112, allocations: 0.8386 MB / 0.5007 GB, free: 4.996 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.017e-05/0.5113, allocations: 146.5 kB / 0.5008 GB, free: 4.867 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.5116, allocations: 289.2 kB / 0.5011 GB, free: 4.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.271e-05/0.5117, allocations: 358.8 kB / 0.5014 GB, free: 4.266 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.5121, allocations: 332.3 kB / 0.5018 GB, free: 3.984 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007139/0.5128, allocations: 1.159 MB / 0.5029 GB, free: 2.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.514, allocations: 1.533 MB / 0.5044 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/0.514, allocations: 8 kB / 0.5044 GB, free: 0.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002137/0.5161, allocations: 1.541 MB / 0.5059 GB, free: 15.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.5162, allocations: 21.92 kB / 0.5059 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.608e-05/0.5162, allocations: 28.09 kB / 0.5059 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006206/0.5168, allocations: 163.6 kB / 0.5061 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.5179, allocations: 395.8 kB / 0.5065 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.5208, allocations: 4.08 MB / 0.5105 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.5218, allocations: 191.5 kB / 0.5106 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.522, allocations: 104.6 kB / 0.5107 GB, free: 10.03 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0004788/0.5225, allocations: 323.6 kB / 0.511 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.5227, allocations: 110.6 kB / 0.5112 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.5246, allocations: 0.9495 MB / 0.5121 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.5246, allocations: 4 kB / 0.5121 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.5246, allocations: 4 kB / 0.5121 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5246, allocations: 1.266 kB / 0.5121 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002144/0.5268, allocations: 1.376 MB / 0.5134 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.5268, allocations: 0 / 0.5134 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.5271, allocations: 62.03 kB / 0.5135 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007305/0.5278, allocations: 175.9 kB / 0.5137 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.5279, allocations: 20 kB / 0.5137 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002645/0.5305, allocations: 3.949 MB / 0.5175 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5305, allocations: 4.031 kB / 0.5175 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.5317, allocations: 0.9088 MB / 0.5184 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.532, allocations: 183.6 kB / 0.5186 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.5321, allocations: 15.91 kB / 0.5186 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003992/0.5325, allocations: 15.98 kB / 0.5186 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.743e-05/0.5326, allocations: 39.91 kB / 0.5187 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.5326, allocations: 23.98 kB / 0.5187 GB, free: 1.754 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001087/0.5337, allocations: 0.9508 MB / 0.5196 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5337, allocations: 0 / 0.5196 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002137/0.5359, allocations: 0.6979 MB / 0.5203 GB, free: 104 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (cathode.temperature,anode.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 (30): * Single equations (assignments): 26 * 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.00292/0.5388, allocations: 2.185 MB / 0.5224 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.5405, allocations: 0.8655 MB / 0.5233 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5405, allocations: 0 / 0.5233 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005039/0.541, allocations: 394.2 kB / 0.5237 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.5422, allocations: 199.2 kB / 0.5238 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.556, allocations: 11.51 MB / 0.5351 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006405/0.5567, allocations: 1.099 MB / 0.5362 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.5578, allocations: 316.2 kB / 0.5365 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006228/0.5585, allocations: 0.5422 MB / 0.537 GB, free: 13.69 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5585, allocations: 0 / 0.537 GB, free: 13.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05333/0.6118, allocations: 32.04 MB / 0.5683 GB, free: 13.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.612, allocations: 240.3 kB / 0.5685 GB, free: 13.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.596/3.208, allocations: 0 / 0.5685 GB, free: 13.55 MB / 446.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)