Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",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.0009124/0.0009124, allocations: 99.31 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.0009724/0.0009722, allocations: 177.3 kB / 15.95 MB, free: 216 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.287/1.287, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2103/0.2103, allocations: 15.27 MB / 306.2 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003318, allocations: 12 kB / 371.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2886, allocations: 54.62 MB / 426.1 MB, free: 39.97 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.StandardElectrochemicalCell2): time 0.006238/0.2949, allocations: 6.574 MB / 432.7 MB, free: 38.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.309, allocations: 15.49 MB / 448.1 MB, free: 27.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.3105, allocations: 31.38 kB / 448.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.3117, allocations: 443 kB / 448.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002846/0.3146, allocations: 1.042 MB / 449.7 MB, free: 26.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007322/0.322, allocations: 2.519 MB / 452.2 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.324, allocations: 1.119 MB / 453.3 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007874/0.3249, allocations: 0.7157 MB / 454 MB, free: 24.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005766/0.3254, allocations: 0.5487 MB / 454.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006649/0.3261, allocations: 0.6953 MB / 455.2 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.3262, allocations: 73.44 kB / 455.3 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00651/0.3328, allocations: 2.005 MB / 457.3 MB, free: 23.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005101/0.3333, allocations: 277.5 kB / 457.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006559/0.334, allocations: 279.2 kB / 457.9 MB, free: 22.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005197/0.3392, allocations: 2.098 MB / 460 MB, free: 22.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3392, allocations: 0 / 460 MB, free: 22.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3392, allocations: 0 / 460 MB, free: 22.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.3392, allocations: 1.062 kB / 460 MB, free: 22.2 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: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.00336/0.3426, allocations: 1.654 MB / 461.6 MB, free: 21.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.089e-05/0.3427, allocations: 14.22 kB / 461.6 MB, free: 21.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002273/0.3429, allocations: 180.3 kB / 461.8 MB, free: 21.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/0.3443, allocations: 381.6 kB / 462.2 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.3457, allocations: 0.8996 MB / 463.1 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.3458, allocations: 145.8 kB / 463.2 MB, free: 20.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/0.346, allocations: 116.9 kB / 463.3 MB, free: 20.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.3483, allocations: 1.64 MB / 465 MB, free: 19.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.3483, allocations: 1.125 kB / 465 MB, free: 19.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/0.3484, allocations: 51.02 kB / 465 MB, free: 19.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.3485, allocations: 29.78 kB / 465.1 MB, free: 19.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002683/0.3512, allocations: 2.098 MB / 467.2 MB, free: 18.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.3578, allocations: 5.403 MB / 472.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.359, allocations: 0.7212 MB / 473.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005965/0.3649, allocations: 4.92 MB / 478.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.365, allocations: 41.28 kB / 478.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002736/0.3653, allocations: 80.86 kB / 478.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.003e-06/0.3653, allocations: 0 / 478.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001196/0.3665, allocations: 0.7498 MB / 479.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.084e-05/0.3665, allocations: 112.3 kB / 479.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.3678, allocations: 1.185 MB / 480.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.3678, allocations: 30.89 kB / 480.4 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003908/0.3682, allocations: 0.7751 MB / 481.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.373e-05/0.3683, allocations: 142.4 kB / 481.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.3684, allocations: 24.72 kB / 481.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.883e-05/0.3684, allocations: 351.8 kB / 481.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004652/0.3689, allocations: 311.6 kB / 482 MB, free: 8.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007448/0.3697, allocations: 1.036 MB / 483 MB, free: 7.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006301/0.3703, allocations: 491.4 kB / 483.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/0.3703, allocations: 8.438 kB / 483.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.001976/0.3723, allocations: 1.427 MB / 484.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.3723, allocations: 20.19 kB / 485 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-05/0.3724, allocations: 27.81 kB / 485 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.373, allocations: 159 kB / 485.1 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.3741, allocations: 374.3 kB / 485.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.3762, allocations: 3.88 MB / 489.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009903/0.3772, allocations: 78.78 kB / 489.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.3774, allocations: 93.77 kB / 489.6 MB, free: 2.871 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * 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.0004241/0.3778, allocations: 307.9 kB / 489.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.3779, allocations: 101.2 kB / 490 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.3797, allocations: 0.8684 MB / 490.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3797, allocations: 2.812 kB / 490.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3797, allocations: 5.031 kB / 490.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3797, allocations: 3.188 kB / 490.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001901/0.3816, allocations: 1.245 MB / 492.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.3816, allocations: 6.25 kB / 492.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.3819, allocations: 58.31 kB / 492.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007276/0.3826, allocations: 180.6 kB / 492.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.3827, allocations: 15.53 kB / 492.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002133/0.3848, allocations: 3.747 MB / 496.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3848, allocations: 288 / 496.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.3859, allocations: 0.9649 MB / 497 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002776/0.3862, allocations: 196 kB / 497.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.3863, allocations: 8.562 kB / 497.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.3867, allocations: 13.25 kB / 497.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.786e-05/0.3868, allocations: 42.7 kB / 497.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.3868, allocations: 17.64 kB / 497.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001011/0.3879, allocations: 0.8631 MB / 498.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.273e-06/0.3879, allocations: 0 / 498.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002021/0.3899, allocations: 0.6152 MB / 498.8 MB, free: 10.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (27): * Single equations (assignments): 23 * 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.002735/0.3926, allocations: 2.665 MB / 0.4897 GB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.3943, allocations: 0.7883 MB / 0.4905 GB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3943, allocations: 4 kB / 0.4905 GB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000525/0.3949, allocations: 382.2 kB / 0.4908 GB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008326/0.3957, allocations: 157.2 kB / 0.491 GB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.406, allocations: 21.77 MB / 0.5123 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006129/0.4067, allocations: 1.087 MB / 0.5133 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001051/0.4078, allocations: 285.8 kB / 0.5136 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005335/0.4083, allocations: 495.2 kB / 0.5141 GB, free: 14.54 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4083, allocations: 0 / 0.5141 GB, free: 14.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04593/0.4543, allocations: 27.24 MB / 0.5407 GB, free: 3.566 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.4545, allocations: 218.2 kB / 0.5409 GB, free: 3.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/2.801, allocations: 2.812 kB / 0.5409 GB, free: 3.328 MB / 414.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) Environment - environmentSimulation: