Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1168/0.1168, allocations: 15.28 MB / 30.53 MB, free: 3.199 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.0009683/0.0009684, allocations: 189 kB / 35.63 MB, free: 2.25 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.477/1.477, allocations: 225.7 MB / 266.3 MB, free: 6.102 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.0007683/0.0007684, allocations: 103.2 kB / 321.7 MB, free: 2.191 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003407, allocations: 8.703 kB / 387 MB, free: 50.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09452/0.09488, allocations: 54.64 MB / 441.7 MB, free: 14.85 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.StandardElectrochemicalCell): time 0.02699/0.1219, allocations: 23.97 MB / 465.6 MB, free: 6.809 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0269/0.1488, allocations: 26.49 MB / 492.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.1505, allocations: 35.69 kB / 492.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.1519, allocations: 492.8 kB / 492.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002746/0.1547, allocations: 0.9237 MB / 493.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008232/0.163, allocations: 2.886 MB / 496.5 MB, free: 6.402 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002375/0.1654, allocations: 1.758 MB / 498.2 MB, free: 4.637 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001005/0.1664, allocations: 0.7701 MB / 499 MB, free: 3.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000835/0.1672, allocations: 0.7046 MB / 499.7 MB, free: 3.133 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00085/0.1681, allocations: 0.817 MB / 0.4888 GB, free: 2.312 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.1683, allocations: 80 kB / 0.4889 GB, free: 2.234 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005869/0.1741, allocations: 1.953 MB / 0.4908 GB, free: 284 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004289/0.1746, allocations: 314.9 kB / 0.4911 GB, free: 15.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008329/0.1754, allocations: 0.7518 MB / 0.4918 GB, free: 15.21 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009143/0.1846, allocations: 3.639 MB / 0.4953 GB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1846, allocations: 0 / 0.4953 GB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1846, allocations: 4 kB / 0.4954 GB, free: 11.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.1847, allocations: 0 / 0.4954 GB, free: 11.55 MB / 378.7 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.002906/0.1876, allocations: 1.774 MB / 0.4971 GB, free: 9.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1876, allocations: 9.156 kB / 0.4971 GB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001586/0.1892, allocations: 442.1 kB / 0.4975 GB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.1909, allocations: 0.9933 MB / 0.4985 GB, free: 8.246 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.1911, allocations: 154.3 kB / 0.4986 GB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.1913, allocations: 124 kB / 0.4987 GB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002695/0.194, allocations: 1.744 MB / 0.5005 GB, free: 6.145 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/0.194, allocations: 7.938 kB / 0.5005 GB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.1942, allocations: 48 kB / 0.5005 GB, free: 6.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.1942, allocations: 32 kB / 0.5005 GB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003371/0.1976, allocations: 2.307 MB / 0.5028 GB, free: 3.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2171/0.4147, allocations: 5.522 MB / 0.5082 GB, free: 66.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.4161, allocations: 0.7412 MB / 0.5089 GB, free: 66.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005596/0.4167, allocations: 352.4 kB / 0.5092 GB, free: 66.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006774/0.4235, allocations: 5.591 MB / 0.5147 GB, free: 62.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.4235, allocations: 43.2 kB / 0.5147 GB, free: 62.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.955e-06/0.4235, allocations: 0.5625 kB / 0.5147 GB, free: 62.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.001392/0.4249, allocations: 0.793 MB / 0.5155 GB, free: 62.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.425, allocations: 109.6 kB / 0.5156 GB, free: 62.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.4267, allocations: 1.274 MB / 0.5169 GB, free: 62.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.4268, allocations: 30.92 kB / 0.5169 GB, free: 62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005645/0.4273, allocations: 0.8376 MB / 0.5177 GB, free: 61.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.4275, allocations: 142.8 kB / 0.5179 GB, free: 61.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.4275, allocations: 26.84 kB / 0.5179 GB, free: 61.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4277, allocations: 363.4 kB / 0.5182 GB, free: 61.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005888/0.4283, allocations: 329.6 kB / 0.5185 GB, free: 61.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.4294, allocations: 1.149 MB / 0.5197 GB, free: 60.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.4312, allocations: 1.517 MB / 0.5211 GB, free: 58.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.816e-05/0.4312, allocations: 9.234 kB / 0.5211 GB, free: 58.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002815/0.434, allocations: 1.535 MB / 0.5226 GB, free: 58.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.4341, allocations: 20.06 kB / 0.5227 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.783e-05/0.4341, allocations: 30.94 kB / 0.5227 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006368/0.4347, allocations: 162.7 kB / 0.5229 GB, free: 58.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.4359, allocations: 399.7 kB / 0.5232 GB, free: 58.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.4382, allocations: 3.876 MB / 0.527 GB, free: 54.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009746/0.4392, allocations: 184.5 kB / 0.5272 GB, free: 54.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.4393, allocations: 103.9 kB / 0.5273 GB, free: 54.73 MB / 378.7 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.0004831/0.4398, allocations: 330.5 kB / 0.5276 GB, free: 54.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.44, allocations: 113.5 kB / 0.5277 GB, free: 54.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.4419, allocations: 0.9445 MB / 0.5286 GB, free: 54.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.4419, allocations: 4.188 kB / 0.5286 GB, free: 54.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.4419, allocations: 1.641 kB / 0.5286 GB, free: 54.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4419, allocations: 6.844 kB / 0.5287 GB, free: 54.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.4441, allocations: 1.352 MB / 0.53 GB, free: 53.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.4441, allocations: 6 kB / 0.53 GB, free: 53.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/0.4443, allocations: 64.08 kB / 0.53 GB, free: 53.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006889/0.445, allocations: 180.3 kB / 0.5302 GB, free: 53.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.321e-05/0.4451, allocations: 14.77 kB / 0.5302 GB, free: 53.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.4469, allocations: 3.746 MB / 0.5339 GB, free: 50.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.447, allocations: 3.219 kB / 0.5339 GB, free: 50.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.4481, allocations: 0.91 MB / 0.5348 GB, free: 49.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000269/0.4484, allocations: 233.7 kB / 0.535 GB, free: 49.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.4485, allocations: 14.09 kB / 0.535 GB, free: 49.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.4489, allocations: 13.8 kB / 0.535 GB, free: 49.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.129e-05/0.449, allocations: 39.03 kB / 0.5351 GB, free: 49.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.449, allocations: 21.45 kB / 0.5351 GB, free: 49.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001184/0.4502, allocations: 0.9435 MB / 0.536 GB, free: 49.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4502, allocations: 0 / 0.536 GB, free: 49.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0023/0.4525, allocations: 0.6902 MB / 0.5367 GB, free: 49.37 MB / 378.7 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.001523/0.454, allocations: 0.8369 MB / 0.5375 GB, free: 49.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001873/0.4559, allocations: 0.8342 MB / 0.5383 GB, free: 49.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4559, allocations: 0 / 0.5383 GB, free: 49.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.4564, allocations: 395.5 kB / 0.5387 GB, free: 48.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.4579, allocations: 178.5 kB / 0.5389 GB, free: 48.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.4609, allocations: 2.533 MB / 0.5413 GB, free: 47.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.4614, allocations: 1.096 MB / 0.5424 GB, free: 46.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001172/0.4626, allocations: 315.8 kB / 0.5427 GB, free: 46.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.4628, allocations: 158.6 kB / 0.5429 GB, free: 46.54 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.4628, allocations: 3.938 kB / 0.5429 GB, free: 46.54 MB / 378.7 MB Notification: Performance of Templates: time 0.0256/0.4884, allocations: 20.43 MB / 0.5628 GB, free: 30.59 MB / 378.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.makefile (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 & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)