Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1258/0.1258, allocations: 15.28 MB / 30.53 MB, free: 3.074 MB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009882/0.0009883, allocations: 194.3 kB / 35.63 MB, free: 2.227 MB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 225.7 MB / 266.3 MB, free: 6.141 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008624/0.0008626, allocations: 99.66 kB / 321.7 MB, free: 2.168 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003519, allocations: 12.69 kB / 387 MB, free: 50.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09361/0.09397, allocations: 54.64 MB / 441.7 MB, free: 14.82 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/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.03176/0.1258, allocations: 23.31 MB / 465 MB, free: 7.441 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03842/0.1642, allocations: 22.3 MB / 487.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.1661, allocations: 31.75 kB / 487.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002184/0.1683, allocations: 437.1 kB / 487.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004196/0.1725, allocations: 0.7763 MB / 488.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0134/0.1859, allocations: 2.443 MB / 491 MB, free: 12.13 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00365/0.1896, allocations: 1.594 MB / 492.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.1914, allocations: 0.7542 MB / 493.3 MB, free: 9.746 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.1928, allocations: 0.6306 MB / 493.9 MB, free: 9.113 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00186/0.1947, allocations: 0.7353 MB / 494.7 MB, free: 8.375 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000357/0.1951, allocations: 80 kB / 494.7 MB, free: 8.297 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00917/0.2043, allocations: 1.657 MB / 496.4 MB, free: 6.637 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00078/0.2051, allocations: 286.9 kB / 496.7 MB, free: 6.355 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001654/0.2068, allocations: 0.6936 MB / 497.4 MB, free: 5.652 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.2193, allocations: 3.207 MB / 0.4889 GB, free: 2.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.2194, allocations: 0 / 0.4889 GB, free: 2.434 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.2194, allocations: 0 / 0.4889 GB, free: 2.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.662e-05/0.2195, allocations: 0 / 0.4889 GB, free: 2.434 MB / 362.7 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.005208/0.2247, allocations: 1.633 MB / 0.4904 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.614e-05/0.2248, allocations: 9.719 kB / 0.4905 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002718/0.2275, allocations: 398.2 kB / 0.4908 GB, free: 356 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00259/0.2301, allocations: 0.9341 MB / 0.4918 GB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.2304, allocations: 154.1 kB / 0.4919 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003944/0.2308, allocations: 116 kB / 0.492 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004472/0.2353, allocations: 1.645 MB / 0.4936 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.249e-05/0.2353, allocations: 0 / 0.4936 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002338/0.2356, allocations: 48 kB / 0.4937 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.54e-05/0.2356, allocations: 28 kB / 0.4937 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005016/0.2407, allocations: 2.096 MB / 0.4957 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0131/0.2538, allocations: 5.389 MB / 0.501 GB, free: 5.617 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.256, allocations: 0.7328 MB / 0.5017 GB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.2571, allocations: 352.4 kB / 0.502 GB, free: 4.508 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2236/0.4807, allocations: 4.943 MB / 0.5069 GB, free: 68.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.4808, allocations: 36.14 kB / 0.5069 GB, free: 68.62 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003288/0.4811, allocations: 75.31 kB / 0.507 GB, free: 68.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.386e-06/0.4812, allocations: 0 / 0.507 GB, free: 68.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001228/0.4824, allocations: 0.7536 MB / 0.5077 GB, free: 68.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.4824, allocations: 107.8 kB / 0.5078 GB, free: 68.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.4837, allocations: 1.189 MB / 0.509 GB, free: 68.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.4838, allocations: 30.92 kB / 0.509 GB, free: 68.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003963/0.4842, allocations: 0.7801 MB / 0.5098 GB, free: 67.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.389e-05/0.4843, allocations: 138.7 kB / 0.5099 GB, free: 67.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.584e-05/0.4843, allocations: 25 kB / 0.5099 GB, free: 67.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.219e-05/0.4844, allocations: 350 kB / 0.5103 GB, free: 67.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004733/0.4849, allocations: 316.5 kB / 0.5106 GB, free: 67.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007376/0.4856, allocations: 1.042 MB / 0.5116 GB, free: 66.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.4869, allocations: 1.38 MB / 0.5129 GB, free: 65.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.4869, allocations: 6.719 kB / 0.5129 GB, free: 65.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002114/0.489, allocations: 1.436 MB / 0.5143 GB, free: 65.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.4891, allocations: 16.28 kB / 0.5144 GB, free: 65.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-05/0.4891, allocations: 26.34 kB / 0.5144 GB, free: 65.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/0.4897, allocations: 153.8 kB / 0.5145 GB, free: 65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.4908, allocations: 375.3 kB / 0.5149 GB, free: 64.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/0.4929, allocations: 3.872 MB / 0.5187 GB, free: 61.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008432/0.4938, allocations: 77 kB / 0.5187 GB, free: 61.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.4939, allocations: 93.69 kB / 0.5188 GB, free: 61.19 MB / 378.7 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.0003979/0.4943, allocations: 308.8 kB / 0.5191 GB, free: 61.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.4945, allocations: 108.8 kB / 0.5192 GB, free: 60.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.4962, allocations: 0.8455 MB / 0.5201 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.4962, allocations: 6.547 kB / 0.5201 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.4962, allocations: 2.375 kB / 0.5201 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4962, allocations: 6.375 kB / 0.5201 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.4982, allocations: 1.254 MB / 0.5213 GB, free: 60.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.4982, allocations: 2.656 kB / 0.5213 GB, free: 60.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.4984, allocations: 61.56 kB / 0.5214 GB, free: 60.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007259/0.4992, allocations: 181.4 kB / 0.5215 GB, free: 60.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.4992, allocations: 14.98 kB / 0.5215 GB, free: 60.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.5012, allocations: 3.743 MB / 0.5252 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.5012, allocations: 2.375 kB / 0.5252 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.5024, allocations: 0.8578 MB / 0.526 GB, free: 56.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.5027, allocations: 208.3 kB / 0.5262 GB, free: 56.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.5028, allocations: 8.453 kB / 0.5262 GB, free: 56.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.5032, allocations: 22.11 kB / 0.5263 GB, free: 56.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/0.5032, allocations: 34.78 kB / 0.5263 GB, free: 56.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.5033, allocations: 17.88 kB / 0.5263 GB, free: 56.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.5045, allocations: 0.8748 MB / 0.5272 GB, free: 56.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5045, allocations: 3.781 kB / 0.5272 GB, free: 56.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002358/0.5069, allocations: 0.6048 MB / 0.5278 GB, free: 55.96 MB / 378.7 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.001572/0.5084, allocations: 0.7348 MB / 0.5285 GB, free: 55.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.5103, allocations: 0.7868 MB / 0.5292 GB, free: 55.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5103, allocations: 1 kB / 0.5292 GB, free: 55.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000466/0.5108, allocations: 380 kB / 0.5296 GB, free: 55.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.5121, allocations: 156.4 kB / 0.5298 GB, free: 55.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.5153, allocations: 2.355 MB / 0.5321 GB, free: 54.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007459/0.516, allocations: 1.063 MB / 0.5331 GB, free: 53.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001157/0.5172, allocations: 287.8 kB / 0.5334 GB, free: 53.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.5175, allocations: 141.7 kB / 0.5335 GB, free: 53.53 MB / 378.7 MB Notification: Performance of SimCode: time 8.32e-07/0.5175, allocations: 0 / 0.5335 GB, free: 53.53 MB / 378.7 MB Notification: Performance of Templates: time 0.02591/0.5435, allocations: 18.1 MB / 0.5512 GB, free: 42.54 MB / 378.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (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 & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)