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.001185/0.001184, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001263/0.001263, allocations: 191.3 kB / 16.13 MB, free: 6.703 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.294/1.294, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1829/0.1829, allocations: 15.31 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.89 kB / 369.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1033, allocations: 53.61 MB / 423.4 MB, free: 14.67 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.3417/0.4451, allocations: 28.07 MB / 451.4 MB, free: 38.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.4617, allocations: 21.56 MB / 473 MB, free: 28.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.4631, allocations: 36.88 kB / 473 MB, free: 28.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.4643, allocations: 496.8 kB / 473.5 MB, free: 27.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002227/0.4665, allocations: 0.9232 MB / 474.4 MB, free: 27.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00742/0.4739, allocations: 2.885 MB / 477.3 MB, free: 25.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.4759, allocations: 1.749 MB / 479.1 MB, free: 24.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007742/0.4766, allocations: 0.8206 MB / 479.9 MB, free: 24.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007059/0.4774, allocations: 0.7544 MB / 480.6 MB, free: 24.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000738/0.4781, allocations: 0.864 MB / 481.5 MB, free: 23.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002162/0.4783, allocations: 92.19 kB / 481.6 MB, free: 23.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00608/0.4844, allocations: 2.017 MB / 483.6 MB, free: 23.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003934/0.4848, allocations: 328.9 kB / 483.9 MB, free: 23.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008606/0.4857, allocations: 0.7577 MB / 484.7 MB, free: 22.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007447/0.4932, allocations: 3.686 MB / 488.4 MB, free: 21.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4932, allocations: 4 kB / 488.4 MB, free: 21.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.4932, allocations: 5.125 kB / 488.4 MB, free: 21.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.136e-05/0.4933, allocations: 0 / 488.4 MB, free: 21.13 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.003242/0.4965, allocations: 2.087 MB / 490.5 MB, free: 19.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.4966, allocations: 9.812 kB / 490.5 MB, free: 19.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001806/0.4967, allocations: 192.9 kB / 490.7 MB, free: 19.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.4984, allocations: 431.8 kB / 491.1 MB, free: 19.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.4998, allocations: 1.008 MB / 492.1 MB, free: 18.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.4999, allocations: 154 kB / 492.3 MB, free: 18.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.5001, allocations: 124.3 kB / 492.4 MB, free: 18.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002265/0.5024, allocations: 1.761 MB / 494.1 MB, free: 18.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.5024, allocations: 0 / 494.1 MB, free: 18.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.5025, allocations: 50.94 kB / 494.2 MB, free: 18.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.5025, allocations: 32.62 kB / 494.2 MB, free: 18.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002685/0.5052, allocations: 2.312 MB / 496.5 MB, free: 17.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006195/0.5114, allocations: 5.578 MB / 0.4903 GB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.5126, allocations: 0.7365 MB / 0.4911 GB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.5131, allocations: 359.3 kB / 0.4914 GB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006809/0.52, allocations: 5.714 MB / 0.497 GB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.52, allocations: 51.11 kB / 0.497 GB, free: 8.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.52, allocations: 0 / 0.497 GB, free: 8.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=37): time 0.001328/0.5214, allocations: 0.7811 MB / 0.4978 GB, free: 7.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.5214, allocations: 115.3 kB / 0.4979 GB, free: 7.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5227, allocations: 1.301 MB / 0.4992 GB, free: 6.402 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.5227, allocations: 30.22 kB / 0.4992 GB, free: 6.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000357/0.5231, allocations: 0.8383 MB / 0.5 GB, free: 5.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.42e-05/0.5232, allocations: 146.6 kB / 0.5002 GB, free: 5.465 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002673/0.5234, allocations: 293 kB / 0.5004 GB, free: 5.199 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.366e-05/0.5235, allocations: 354.6 kB / 0.5008 GB, free: 4.863 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004383/0.5239, allocations: 336.9 kB / 0.5011 GB, free: 4.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007067/0.5247, allocations: 1.152 MB / 0.5022 GB, free: 3.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.5258, allocations: 1.533 MB / 0.5037 GB, free: 1.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.5258, allocations: 8 kB / 0.5037 GB, free: 1.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.001951/0.5278, allocations: 1.542 MB / 0.5052 GB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.5278, allocations: 27.97 kB / 0.5053 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.5279, allocations: 28.61 kB / 0.5053 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005994/0.5285, allocations: 159.4 kB / 0.5054 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.5296, allocations: 403.4 kB / 0.5058 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002665/0.5322, allocations: 3.871 MB / 0.5096 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009519/0.5332, allocations: 183.8 kB / 0.5098 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.5333, allocations: 103.6 kB / 0.5099 GB, free: 10.84 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.0004749/0.5338, allocations: 339.9 kB / 0.5102 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.534, allocations: 115.2 kB / 0.5103 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.5358, allocations: 0.9473 MB / 0.5112 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5359, allocations: 4 kB / 0.5112 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.5359, allocations: 0 / 0.5112 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5359, allocations: 1.922 kB / 0.5112 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.5379, allocations: 1.376 MB / 0.5126 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.5379, allocations: 0 / 0.5126 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.5382, allocations: 59.77 kB / 0.5127 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007374/0.5389, allocations: 184.2 kB / 0.5128 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.539, allocations: 16 kB / 0.5128 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002456/0.5414, allocations: 3.748 MB / 0.5165 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5414, allocations: 4 kB / 0.5165 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.5426, allocations: 0.8971 MB / 0.5174 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/0.5428, allocations: 187.6 kB / 0.5176 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/0.543, allocations: 23.89 kB / 0.5176 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.5434, allocations: 8 kB / 0.5176 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.774e-05/0.5435, allocations: 39.84 kB / 0.5176 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/0.5436, allocations: 27.92 kB / 0.5177 GB, free: 2.781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001103/0.5447, allocations: 0.9586 MB / 0.5186 GB, free: 1.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5447, allocations: 0 / 0.5186 GB, free: 1.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001962/0.5466, allocations: 0.6902 MB / 0.5193 GB, free: 1.129 MB / 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.002944/0.5496, allocations: 2.185 MB / 0.5214 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.5512, allocations: 0.8378 MB / 0.5222 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5512, allocations: 0 / 0.5222 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.5517, allocations: 394 kB / 0.5226 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.001097/0.5528, allocations: 183.2 kB / 0.5228 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.5663, allocations: 11.5 MB / 0.534 GB, free: 0.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006652/0.567, allocations: 1.095 MB / 0.5351 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.5681, allocations: 318.5 kB / 0.5354 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006273/0.5687, allocations: 0.5344 MB / 0.5359 GB, free: 14.78 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5688, allocations: 0 / 0.5359 GB, free: 14.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04922/0.618, allocations: 31.44 MB / 0.5666 GB, free: 15.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.6182, allocations: 240 kB / 0.5668 GB, free: 15.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.488/3.107, allocations: 4 kB / 0.5668 GB, free: 15.23 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)