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.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.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.0009489/0.0009489, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005378/0.005378, allocations: 173.9 kB / 16.26 MB, free: 6.676 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: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1818/0.1818, allocations: 15.28 MB / 306.7 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.0003031, allocations: 12 kB / 372.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2547, allocations: 54.61 MB / 426.8 MB, free: 40.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.02265/0.2774, allocations: 26.88 MB / 453.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0158/0.2932, allocations: 17.95 MB / 471.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.2944, allocations: 30.78 kB / 471.7 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.2955, allocations: 433 kB / 472.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001886/0.2974, allocations: 0.7703 MB / 472.9 MB, free: 17.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006325/0.3037, allocations: 2.447 MB / 475.3 MB, free: 16.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.3053, allocations: 1.584 MB / 476.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006822/0.306, allocations: 0.7693 MB / 477.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004683/0.3064, allocations: 0.6423 MB / 478.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005848/0.307, allocations: 0.7401 MB / 479.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.3072, allocations: 83.98 kB / 479.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003803/0.311, allocations: 1.699 MB / 480.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.3112, allocations: 292.9 kB / 481.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.3116, allocations: 0.6919 MB / 481.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003419/0.315, allocations: 3.198 MB / 485 MB, free: 8.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.315, allocations: 0 / 485 MB, free: 8.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.315, allocations: 0 / 485 MB, free: 8.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.3151, allocations: 0 / 485 MB, free: 8.879 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.002109/0.3172, allocations: 1.64 MB / 486.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3172, allocations: 8.031 kB / 486.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.3174, allocations: 182.9 kB / 486.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.3187, allocations: 378.3 kB / 487.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.3198, allocations: 0.9437 MB / 488.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.054e-05/0.3199, allocations: 150.5 kB / 488.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.3201, allocations: 116.8 kB / 488.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/0.3221, allocations: 1.645 MB / 490.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.3222, allocations: 4 kB / 490.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.3223, allocations: 47.94 kB / 490.1 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.3223, allocations: 36 kB / 490.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.3247, allocations: 2.108 MB / 492.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006191/0.3309, allocations: 5.397 MB / 497.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3322, allocations: 0.7247 MB / 498.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005655/0.3327, allocations: 359 kB / 498.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006341/0.3391, allocations: 4.942 MB / 0.4919 GB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3391, allocations: 39.31 kB / 0.4919 GB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000228/0.3393, allocations: 78.81 kB / 0.492 GB, free: 7.598 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.783e-06/0.3394, allocations: 0 / 0.492 GB, free: 7.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.001275/0.3406, allocations: 0.765 MB / 0.4927 GB, free: 6.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.3407, allocations: 106.8 kB / 0.4928 GB, free: 6.711 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.342, allocations: 1.19 MB / 0.494 GB, free: 5.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.3421, allocations: 33.7 kB / 0.494 GB, free: 5.633 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005037/0.3426, allocations: 0.7707 MB / 0.4948 GB, free: 4.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3427, allocations: 141.8 kB / 0.4949 GB, free: 4.797 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3428, allocations: 101 kB / 0.495 GB, free: 4.707 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.343, allocations: 356.9 kB / 0.4954 GB, free: 4.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.3435, allocations: 321.9 kB / 0.4957 GB, free: 4.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009515/0.3444, allocations: 1.042 MB / 0.4967 GB, free: 2.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.3459, allocations: 1.397 MB / 0.498 GB, free: 1.023 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.3459, allocations: 8 kB / 0.498 GB, free: 1.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002054/0.348, allocations: 1.436 MB / 0.4994 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.348, allocations: 23.92 kB / 0.4995 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.3481, allocations: 28 kB / 0.4995 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005661/0.3486, allocations: 157.8 kB / 0.4996 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.3497, allocations: 371.4 kB / 0.5 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/0.3523, allocations: 3.872 MB / 0.5038 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000688/0.353, allocations: 83.89 kB / 0.5039 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.3531, allocations: 92 kB / 0.504 GB, free: 10.62 MB / 382.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 (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.0003828/0.3535, allocations: 319.2 kB / 0.5043 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.3537, allocations: 98.69 kB / 0.5044 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3554, allocations: 0.8553 MB / 0.5052 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3554, allocations: 4 kB / 0.5052 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.3554, allocations: 0 / 0.5052 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3554, allocations: 7.922 kB / 0.5052 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.3572, allocations: 1.262 MB / 0.5064 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3572, allocations: 0 / 0.5064 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000249/0.3575, allocations: 59.91 kB / 0.5065 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/0.3582, allocations: 183.5 kB / 0.5067 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.3582, allocations: 12 kB / 0.5067 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00239/0.3606, allocations: 3.742 MB / 0.5103 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3606, allocations: 7.938 kB / 0.5103 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3617, allocations: 0.8515 MB / 0.5112 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.3619, allocations: 203.7 kB / 0.5114 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.362, allocations: 8 kB / 0.5114 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.3624, allocations: 15.98 kB / 0.5114 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.375e-05/0.3625, allocations: 35.84 kB / 0.5114 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.3625, allocations: 24.06 kB / 0.5114 GB, free: 2.391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009915/0.3635, allocations: 0.881 MB / 0.5123 GB, free: 1.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3635, allocations: 0 / 0.5123 GB, free: 1.504 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001568/0.3651, allocations: 0.6161 MB / 0.5129 GB, free: 0.8867 MB / 382.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 (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.002271/0.3673, allocations: 2.02 MB / 0.5149 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.3687, allocations: 0.7835 MB / 0.5156 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3687, allocations: 0 / 0.5156 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004507/0.3692, allocations: 385.3 kB / 0.516 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.3705, allocations: 172.8 kB / 0.5162 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.3821, allocations: 10.65 MB / 0.5266 GB, free: 1.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006001/0.3827, allocations: 1.056 MB / 0.5276 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009667/0.3837, allocations: 290.2 kB / 0.5279 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005778/0.3843, allocations: 0.4914 MB / 0.5284 GB, free: 15.88 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3843, allocations: 3.938 kB / 0.5284 GB, free: 15.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04248/0.4268, allocations: 27.86 MB / 0.5556 GB, free: 4.184 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.427, allocations: 244.5 kB / 0.5558 GB, free: 3.926 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/2.782, allocations: 3.938 kB / 0.5558 GB, free: 3.922 MB / 430.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/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)