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.001914/0.001915, allocations: 108 kB / 15.6 MB, free: 132 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.003861/0.003861, allocations: 194 kB / 16.53 MB, free: 6.391 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.819/1.819, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.204/0.204, allocations: 15.33 MB / 305.7 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 67.89 kB / 370.5 MB, free: 3.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1342, allocations: 53.6 MB / 424.1 MB, free: 14.18 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.3953/0.5295, allocations: 27.1 MB / 451.2 MB, free: 39.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.5486, allocations: 21.58 MB / 472.7 MB, free: 28.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009926/0.5497, allocations: 19.66 kB / 472.8 MB, free: 28.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.551, allocations: 0.5305 MB / 473.3 MB, free: 27.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002567/0.5536, allocations: 0.9952 MB / 474.3 MB, free: 27.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008406/0.562, allocations: 3.281 MB / 477.6 MB, free: 25.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002561/0.5646, allocations: 1.796 MB / 479.4 MB, free: 24.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.5658, allocations: 0.95 MB / 480.3 MB, free: 23.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009905/0.5668, allocations: 0.7813 MB / 481.1 MB, free: 23.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009624/0.5677, allocations: 0.8848 MB / 482 MB, free: 23.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002238/0.568, allocations: 148 kB / 482.1 MB, free: 23.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007222/0.5752, allocations: 2.059 MB / 484.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004485/0.5757, allocations: 385.9 kB / 484.6 MB, free: 22.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009236/0.5766, allocations: 0.8038 MB / 485.4 MB, free: 22.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008504/0.5851, allocations: 3.911 MB / 489.3 MB, free: 20.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5852, allocations: 0 / 489.3 MB, free: 20.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5852, allocations: 0 / 489.3 MB, free: 20.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.619e-05/0.5852, allocations: 5.438 kB / 489.3 MB, free: 20.32 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.003279/0.5885, allocations: 2.091 MB / 491.4 MB, free: 19.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.5885, allocations: 9.891 kB / 491.4 MB, free: 19.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.5887, allocations: 190.6 kB / 491.6 MB, free: 18.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.5904, allocations: 435.9 kB / 492 MB, free: 18.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.592, allocations: 1.014 MB / 493 MB, free: 18.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.5921, allocations: 154.7 kB / 493.1 MB, free: 18.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001882/0.5923, allocations: 122.2 kB / 493.3 MB, free: 18.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.5945, allocations: 1.76 MB / 495 MB, free: 17.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.5946, allocations: 0 / 495 MB, free: 17.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.5947, allocations: 50.88 kB / 495.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.5947, allocations: 36.69 kB / 495.1 MB, free: 17.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002792/0.5975, allocations: 2.324 MB / 497.4 MB, free: 16.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0066/0.6041, allocations: 5.569 MB / 0.4912 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.6053, allocations: 0.7409 MB / 0.4919 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000519/0.6059, allocations: 362.1 kB / 0.4923 GB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006905/0.6128, allocations: 5.705 MB / 0.4979 GB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.6128, allocations: 51.06 kB / 0.4979 GB, free: 8.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.304e-06/0.6128, allocations: 0 / 0.4979 GB, free: 8.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.00137/0.6142, allocations: 0.7888 MB / 0.4987 GB, free: 7.344 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.6142, allocations: 111.3 kB / 0.4988 GB, free: 7.211 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.6156, allocations: 1.286 MB / 0.5 GB, free: 6.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.6156, allocations: 33.95 kB / 0.5001 GB, free: 6.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003726/0.616, allocations: 0.8344 MB / 0.5009 GB, free: 5.289 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.524e-05/0.6161, allocations: 147 kB / 0.501 GB, free: 5.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.6164, allocations: 293.7 kB / 0.5013 GB, free: 4.895 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.6165, allocations: 353.8 kB / 0.5016 GB, free: 4.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004495/0.6169, allocations: 336.8 kB / 0.502 GB, free: 4.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007366/0.6177, allocations: 1.152 MB / 0.5031 GB, free: 2.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.6189, allocations: 1.533 MB / 0.5046 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.6189, allocations: 8 kB / 0.5046 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002149/0.6211, allocations: 1.543 MB / 0.5061 GB, free: 15.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.6211, allocations: 23.94 kB / 0.5061 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.151e-05/0.6212, allocations: 32.12 kB / 0.5062 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006171/0.6218, allocations: 160.4 kB / 0.5063 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.6229, allocations: 399.4 kB / 0.5067 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/0.626, allocations: 4.068 MB / 0.5107 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.6272, allocations: 190.1 kB / 0.5108 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.6274, allocations: 104 kB / 0.5109 GB, free: 10.32 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.0005377/0.6279, allocations: 327.8 kB / 0.5113 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002148/0.6281, allocations: 115.6 kB / 0.5114 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.6301, allocations: 0.9457 MB / 0.5123 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.6301, allocations: 4 kB / 0.5123 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.6301, allocations: 4 kB / 0.5123 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.6301, allocations: 3.984 kB / 0.5123 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.6324, allocations: 1.37 MB / 0.5136 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.6324, allocations: 4 kB / 0.5136 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.6326, allocations: 55.92 kB / 0.5137 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007442/0.6334, allocations: 187.3 kB / 0.5139 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.28e-05/0.6334, allocations: 12 kB / 0.5139 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002863/0.6363, allocations: 3.947 MB / 0.5177 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.6363, allocations: 7.922 kB / 0.5177 GB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.6376, allocations: 0.9088 MB / 0.5186 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.6379, allocations: 187.5 kB / 0.5188 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.6381, allocations: 11.94 kB / 0.5188 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.6385, allocations: 8 kB / 0.5188 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.6386, allocations: 51.89 kB / 0.5189 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.6386, allocations: 16 kB / 0.5189 GB, free: 1.676 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001232/0.6399, allocations: 0.9547 MB / 0.5198 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6399, allocations: 3.938 kB / 0.5198 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002597/0.6425, allocations: 0.7019 MB / 0.5205 GB, free: 12 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.00312/0.6456, allocations: 2.185 MB / 0.5227 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.6473, allocations: 0.8541 MB / 0.5235 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6474, allocations: 0 / 0.5235 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005447/0.6479, allocations: 397.1 kB / 0.5239 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.6491, allocations: 196.8 kB / 0.5241 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.6625, allocations: 11.03 MB / 0.5348 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007177/0.6633, allocations: 1.095 MB / 0.5359 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001194/0.6645, allocations: 311.3 kB / 0.5362 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006594/0.6651, allocations: 0.5422 MB / 0.5367 GB, free: 14.11 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.6652, allocations: 0 / 0.5367 GB, free: 14.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06387/0.729, allocations: 32.02 MB / 0.568 GB, free: 14.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.16/19.89, allocations: 0 / 0.568 GB, free: 14.2 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)