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.0008059/0.0008059, allocations: 91.84 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.005639/0.005639, allocations: 170.5 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.285/1.285, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1972/0.1972, allocations: 15.27 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 8 kB / 372.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2676, allocations: 54.63 MB / 426.8 MB, free: 40.5 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.StandardElectrochemicalCell): time 0.02664/0.2943, allocations: 27.6 MB / 454.4 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.3125, allocations: 21.31 MB / 475.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001411/0.314, allocations: 34.47 kB / 475.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.3153, allocations: 0.4953 MB / 476.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002552/0.3179, allocations: 0.9094 MB / 477.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008369/0.3262, allocations: 2.883 MB / 480.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001994/0.3282, allocations: 1.76 MB / 481.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008834/0.3291, allocations: 0.7691 MB / 482.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008399/0.33, allocations: 0.724 MB / 483.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009579/0.331, allocations: 0.8283 MB / 484.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002553/0.3312, allocations: 80 kB / 484.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005831/0.3371, allocations: 1.995 MB / 486.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003555/0.3374, allocations: 321.1 kB / 486.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008155/0.3383, allocations: 0.7517 MB / 487.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007684/0.346, allocations: 3.643 MB / 490.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.346, allocations: 0 / 490.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.346, allocations: 0.6562 kB / 490.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.317e-05/0.3461, allocations: 0 / 490.9 MB, free: 3.699 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.003275/0.3494, allocations: 1.769 MB / 492.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3494, allocations: 12.03 kB / 492.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000356/0.3498, allocations: 189.3 kB / 492.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001776/0.3516, allocations: 438.3 kB / 493.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.3531, allocations: 0.9952 MB / 494.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.3532, allocations: 151.7 kB / 494.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/0.3534, allocations: 128 kB / 494.6 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002884/0.3563, allocations: 1.753 MB / 496.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.3564, allocations: 0 / 496.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.3565, allocations: 52 kB / 496.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.3565, allocations: 35.98 kB / 496.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003523/0.3601, allocations: 2.316 MB / 498.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007985/0.3681, allocations: 5.539 MB / 0.4925 GB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.3694, allocations: 0.7347 MB / 0.4932 GB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006157/0.37, allocations: 358.3 kB / 0.4935 GB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007039/0.3771, allocations: 5.598 MB / 0.499 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.3771, allocations: 42.36 kB / 0.499 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.623e-06/0.3771, allocations: 0 / 0.499 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001384/0.3785, allocations: 0.7889 MB / 0.4998 GB, free: 15.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.3786, allocations: 118.7 kB / 0.4999 GB, free: 15.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.38, allocations: 1.283 MB / 0.5012 GB, free: 14.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.38, allocations: 33.7 kB / 0.5012 GB, free: 14.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005131/0.3806, allocations: 0.8383 MB / 0.502 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.3807, allocations: 158 kB / 0.5022 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.3808, allocations: 105.7 kB / 0.5023 GB, free: 13.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3809, allocations: 353.9 kB / 0.5026 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005035/0.3815, allocations: 335.8 kB / 0.5029 GB, free: 12.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009738/0.3824, allocations: 1.152 MB / 0.504 GB, free: 11.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.384, allocations: 1.529 MB / 0.5055 GB, free: 9.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.384, allocations: 12 kB / 0.5056 GB, free: 9.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002181/0.3862, allocations: 1.539 MB / 0.5071 GB, free: 7.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.3862, allocations: 24.78 kB / 0.5071 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.3863, allocations: 28 kB / 0.5071 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006183/0.3869, allocations: 161.4 kB / 0.5073 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.388, allocations: 399.3 kB / 0.5076 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/0.3909, allocations: 3.88 MB / 0.5114 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.392, allocations: 182.3 kB / 0.5116 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/0.3922, allocations: 104 kB / 0.5117 GB, free: 2.465 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.0006188/0.3928, allocations: 329 kB / 0.512 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.393, allocations: 114.6 kB / 0.5121 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.395, allocations: 0.9554 MB / 0.5131 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.395, allocations: 4 kB / 0.5131 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.395, allocations: 0 / 0.5131 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.395, allocations: 0 / 0.5131 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.3971, allocations: 1.359 MB / 0.5144 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.3971, allocations: 4 kB / 0.5144 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.3973, allocations: 64.19 kB / 0.5145 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007455/0.3981, allocations: 179 kB / 0.5146 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.3981, allocations: 20 kB / 0.5146 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/0.4005, allocations: 3.75 MB / 0.5183 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4006, allocations: 4 kB / 0.5183 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.4017, allocations: 0.9088 MB / 0.5192 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.402, allocations: 227.4 kB / 0.5194 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.4021, allocations: 8 kB / 0.5194 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003798/0.4025, allocations: 19.97 kB / 0.5194 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.4026, allocations: 39.83 kB / 0.5195 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.4026, allocations: 20 kB / 0.5195 GB, free: 9.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.4039, allocations: 0.9547 MB / 0.5204 GB, free: 8.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.4039, allocations: 4 kB / 0.5204 GB, free: 8.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002125/0.406, allocations: 0.6941 MB / 0.5211 GB, free: 8.246 MB / 398.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.002949/0.409, allocations: 2.187 MB / 0.5232 GB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.4106, allocations: 0.8326 MB / 0.5241 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4107, allocations: 3.938 kB / 0.5241 GB, free: 5.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.4111, allocations: 401.6 kB / 0.5244 GB, free: 4.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.4127, allocations: 177.1 kB / 0.5246 GB, free: 4.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/0.4264, allocations: 11.59 MB / 0.5359 GB, free: 7.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006423/0.4271, allocations: 1.095 MB / 0.537 GB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001173/0.4283, allocations: 318.8 kB / 0.5373 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006266/0.4289, allocations: 0.5344 MB / 0.5378 GB, free: 5.797 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4289, allocations: 0 / 0.5378 GB, free: 5.797 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05492/0.4839, allocations: 31.15 MB / 0.5682 GB, free: 6.82 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.4841, allocations: 242.7 kB / 0.5685 GB, free: 6.562 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/2.946, allocations: 0 / 0.5685 GB, free: 6.562 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)