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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.001108/0.001108, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001036/0.001036, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1979/0.1979, allocations: 15.26 MB / 306.2 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003123, allocations: 12 kB / 371.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2916, allocations: 54.62 MB / 426.1 MB, free: 40.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.StandardElectrochemicalCell): time 0.006619/0.2983, allocations: 7.177 MB / 433.2 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.3152, allocations: 18.35 MB / 451.6 MB, free: 25.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.3168, allocations: 39.22 kB / 451.6 MB, free: 25.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001617/0.3184, allocations: 0.4947 MB / 452.1 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00474/0.3232, allocations: 1.23 MB / 453.4 MB, free: 24.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01024/0.3334, allocations: 2.964 MB / 456.3 MB, free: 22.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002333/0.3358, allocations: 1.235 MB / 457.6 MB, free: 21.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008026/0.3366, allocations: 0.7403 MB / 458.3 MB, free: 21.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006336/0.3372, allocations: 0.5918 MB / 458.9 MB, free: 21.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006847/0.3379, allocations: 0.7709 MB / 459.7 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.3381, allocations: 78.59 kB / 459.7 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007302/0.3454, allocations: 2.362 MB / 462.1 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000415/0.3458, allocations: 305.2 kB / 462.4 MB, free: 20.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005308/0.3464, allocations: 300.8 kB / 462.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00471/0.3511, allocations: 2.358 MB / 465.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3511, allocations: 4 kB / 465.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3511, allocations: 0 / 465.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2e-05/0.3511, allocations: 0 / 465.1 MB, free: 19.34 MB / 350.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.003039/0.3542, allocations: 1.771 MB / 466.8 MB, free: 18.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3542, allocations: 9.531 kB / 466.8 MB, free: 18.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002152/0.3545, allocations: 190.9 kB / 467 MB, free: 18.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001633/0.3561, allocations: 439.4 kB / 467.5 MB, free: 17.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.3576, allocations: 0.9494 MB / 468.4 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.3577, allocations: 159 kB / 468.6 MB, free: 17.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.3579, allocations: 125.7 kB / 468.7 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.3602, allocations: 1.741 MB / 470.4 MB, free: 16.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.3603, allocations: 8.828 kB / 470.4 MB, free: 16.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.3604, allocations: 57.64 kB / 470.5 MB, free: 16.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.3604, allocations: 30.91 kB / 470.5 MB, free: 16.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003202/0.3636, allocations: 2.296 MB / 472.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007502/0.3712, allocations: 5.527 MB / 478.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3724, allocations: 0.7335 MB / 479.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007194/0.3796, allocations: 5.568 MB / 484.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.3797, allocations: 40.47 kB / 484.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.585e-06/0.3797, allocations: 1.531 kB / 484.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001473/0.3812, allocations: 0.7927 MB / 485.5 MB, free: 7.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.3813, allocations: 108.1 kB / 485.6 MB, free: 6.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.3828, allocations: 1.276 MB / 486.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.3829, allocations: 39.7 kB / 486.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004538/0.3833, allocations: 0.8298 MB / 487.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.3834, allocations: 154 kB / 487.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.3835, allocations: 24.56 kB / 487.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3836, allocations: 355.3 kB / 488.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/0.3841, allocations: 334.6 kB / 488.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009089/0.385, allocations: 1.142 MB / 489.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007203/0.3858, allocations: 0.5019 MB / 490.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-05/0.3858, allocations: 8.75 kB / 490.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002085/0.3879, allocations: 1.533 MB / 491.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.3879, allocations: 21.72 kB / 491.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/0.388, allocations: 31.94 kB / 491.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005471/0.3885, allocations: 161.4 kB / 492 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009764/0.3895, allocations: 399.5 kB / 492.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/0.3917, allocations: 3.892 MB / 496.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.3929, allocations: 189.9 kB / 496.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.3931, allocations: 104 kB / 496.5 MB, free: 13.7 MB / 366.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004563/0.3935, allocations: 329.2 kB / 496.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.3937, allocations: 110.6 kB / 497 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.3955, allocations: 0.9539 MB / 497.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3956, allocations: 4 kB / 497.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3956, allocations: 7.984 kB / 497.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.3956, allocations: 0 / 497.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.3976, allocations: 1.342 MB / 499.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.3976, allocations: 4 kB / 499.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.3978, allocations: 63.89 kB / 499.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000757/0.3986, allocations: 187.2 kB / 499.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.3986, allocations: 16 kB / 499.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002413/0.4011, allocations: 3.751 MB / 0.4915 GB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4011, allocations: 4 kB / 0.4915 GB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.4023, allocations: 1.058 MB / 0.4925 GB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.4026, allocations: 223.5 kB / 0.4927 GB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.4028, allocations: 12 kB / 0.4928 GB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003771/0.4032, allocations: 12 kB / 0.4928 GB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.4032, allocations: 36.11 kB / 0.4928 GB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.4033, allocations: 20 kB / 0.4928 GB, free: 4.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.4043, allocations: 0.9307 MB / 0.4937 GB, free: 4.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4043, allocations: 0 / 0.4937 GB, free: 4.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00218/0.4065, allocations: 0.6902 MB / 0.4944 GB, free: 3.352 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003052/0.4096, allocations: 3.069 MB / 0.4974 GB, free: 180 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.4113, allocations: 0.838 MB / 0.4982 GB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4114, allocations: 0 / 0.4982 GB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005053/0.4119, allocations: 389 kB / 0.4986 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009989/0.4129, allocations: 179.4 kB / 0.4988 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.4278, allocations: 24.27 MB / 0.5225 GB, free: 5.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009176/0.4288, allocations: 1.122 MB / 0.5236 GB, free: 4.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001418/0.4302, allocations: 323.8 kB / 0.5239 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006763/0.4309, allocations: 0.5383 MB / 0.5244 GB, free: 3.645 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4309, allocations: 0 / 0.5244 GB, free: 3.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05147/0.4824, allocations: 30.58 MB / 0.5543 GB, free: 5.328 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002499/0.4827, allocations: 221.2 kB / 0.5545 GB, free: 5.082 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/2.966, allocations: 0 / 0.5545 GB, free: 5.082 MB / 430.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/linux/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) Environment - environmentSimulation: