Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ElectrochemicalCell.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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") translateModel(Chemical.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ElectrochemicalCell") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09946/0.09946, 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.0009004/0.0009005, allocations: 190.3 kB / 35.62 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.458/1.458, allocations: 225.7 MB / 266.3 MB, free: 6.09 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.0008149/0.0008148, allocations: 102.5 kB / 321.7 MB, free: 2.195 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003046, allocations: 7.469 kB / 387 MB, free: 50.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1112, allocations: 54.65 MB / 441.7 MB, free: 14.88 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.ElectrochemicalCell): time 0.03004/0.1413, allocations: 26.62 MB / 468.3 MB, free: 4.18 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03668/0.178, allocations: 35.15 MB / 0.4916 GB, free: 14.93 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002979/0.1811, allocations: 47.62 kB / 0.4917 GB, free: 14.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002369/0.1835, allocations: 0.5938 MB / 0.4923 GB, free: 14.28 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006978/0.1905, allocations: 1.89 MB / 0.4941 GB, free: 12.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01139/0.2019, allocations: 3.373 MB / 0.4974 GB, free: 8.988 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004728/0.2067, allocations: 2.75 MB / 0.5001 GB, free: 6.227 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001985/0.2087, allocations: 1.359 MB / 0.5014 GB, free: 4.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.2106, allocations: 1.164 MB / 0.5026 GB, free: 3.652 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002232/0.2128, allocations: 1.346 MB / 0.5039 GB, free: 2.301 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003503/0.2132, allocations: 136 kB / 0.504 GB, free: 2.168 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2368/0.45, allocations: 2.854 MB / 0.5068 GB, free: 32.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009775/0.451, allocations: 478.9 kB / 0.5072 GB, free: 32.55 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001604/0.4526, allocations: 1.185 MB / 0.5084 GB, free: 32.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01355/0.4662, allocations: 5.495 MB / 0.5138 GB, free: 32.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.4662, allocations: 0 / 0.5138 GB, free: 32.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.4662, allocations: 1.469 kB / 0.5138 GB, free: 32.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000106/0.4663, allocations: 0 / 0.5138 GB, free: 32.14 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.007267/0.4736, allocations: 2.567 MB / 0.5163 GB, free: 30.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4737, allocations: 9.688 kB / 0.5163 GB, free: 30.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002419/0.4761, allocations: 0.5405 MB / 0.5168 GB, free: 30.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002875/0.479, allocations: 1.245 MB / 0.518 GB, free: 30.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.4792, allocations: 223.8 kB / 0.5182 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004336/0.4797, allocations: 221.8 kB / 0.5185 GB, free: 30.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004781/0.4845, allocations: 2.649 MB / 0.521 GB, free: 29.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.625e-05/0.4845, allocations: 4.406 kB / 0.521 GB, free: 29.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002605/0.4848, allocations: 91.47 kB / 0.5211 GB, free: 29.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.086e-05/0.4849, allocations: 53.41 kB / 0.5212 GB, free: 29.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005626/0.4905, allocations: 3.294 MB / 0.5244 GB, free: 29.95 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0128/0.5033, allocations: 8.625 MB / 0.5328 GB, free: 27.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/0.5055, allocations: 1.99 MB / 0.5348 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.5066, allocations: 0.9208 MB / 0.5357 GB, free: 26.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.5168, allocations: 7.739 MB / 0.5432 GB, free: 21.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.5168, allocations: 50.34 kB / 0.5433 GB, free: 21.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 3.567e-06/0.5169, allocations: 0 / 0.5433 GB, free: 21.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=181): time 0.0282/0.5451, allocations: 8.264 MB / 0.5513 GB, free: 19.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.5451, allocations: 100.3 kB / 0.5514 GB, free: 18.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.5466, allocations: 1.34 MB / 0.5527 GB, free: 18.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.5467, allocations: 59.45 kB / 0.5528 GB, free: 18.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004185/0.5471, allocations: 1.048 MB / 0.5538 GB, free: 17.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/0.5475, allocations: 0.6272 MB / 0.5544 GB, free: 17.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.5476, allocations: 54.84 kB / 0.5545 GB, free: 17.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5477, allocations: 399 kB / 0.5549 GB, free: 16.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.5488, allocations: 0.804 MB / 0.5557 GB, free: 16.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.5502, allocations: 1.641 MB / 0.5573 GB, free: 14.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002633/0.5529, allocations: 2.586 MB / 0.5598 GB, free: 12.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.5529, allocations: 8 kB / 0.5598 GB, free: 12.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00599/0.5589, allocations: 3.021 MB / 0.5627 GB, free: 10.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.5589, allocations: 16 kB / 0.5628 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.589e-05/0.559, allocations: 34.59 kB / 0.5628 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003181/0.5622, allocations: 0.5354 MB / 0.5633 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/0.5655, allocations: 0.7995 MB / 0.5641 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006885/0.5724, allocations: 7.481 MB / 0.5714 GB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/0.5751, allocations: 136.2 kB / 0.5715 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002596/0.5754, allocations: 155.6 kB / 0.5717 GB, free: 1.789 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000926/0.5763, allocations: 454.5 kB / 0.5721 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.5766, allocations: 169.6 kB / 0.5723 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006521/0.5831, allocations: 2.583 MB / 0.5748 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.5832, allocations: 16 kB / 0.5748 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5832, allocations: 4 kB / 0.5748 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.261e-05/0.5832, allocations: 7.969 kB / 0.5748 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.5935, allocations: 4.763 MB / 0.5795 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/0.5936, allocations: 14.69 kB / 0.5795 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.5953, allocations: 415.4 kB / 0.5799 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00354/0.5988, allocations: 0.5744 MB / 0.5804 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/0.5991, allocations: 75.97 kB / 0.5805 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008192/0.6073, allocations: 7.29 MB / 0.5876 GB, free: 2.492 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.324e-05/0.6073, allocations: 21.2 kB / 0.5877 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007251/0.6146, allocations: 3.454 MB / 0.591 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007005/0.6153, allocations: 254.8 kB / 0.5913 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002516/0.6156, allocations: 55.98 kB / 0.5913 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.6166, allocations: 74.62 kB / 0.5914 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003493/0.617, allocations: 192.3 kB / 0.5916 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/0.6172, allocations: 91.97 kB / 0.5917 GB, free: 14.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00118/0.6184, allocations: 0.8772 MB / 0.5925 GB, free: 13.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6184, allocations: 2.688 kB / 0.5925 GB, free: 13.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004356/0.6227, allocations: 1.163 MB / 0.5937 GB, free: 12.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.logn) * 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 (198): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003047/0.6258, allocations: 1.28 MB / 0.5949 GB, free: 11.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004883/0.6307, allocations: 2.444 MB / 0.5973 GB, free: 8.793 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.6307, allocations: 4 kB / 0.5973 GB, free: 8.789 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.6327, allocations: 1.412 MB / 0.5987 GB, free: 7.391 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003715/0.6365, allocations: 335 kB / 0.599 GB, free: 7.082 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006671/0.6431, allocations: 5.051 MB / 0.6039 GB, free: 1.934 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.6442, allocations: 1.437 MB / 0.6053 GB, free: 472 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002077/0.6463, allocations: 465.4 kB / 0.6058 GB, free: 36 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006713/0.647, allocations: 300 kB / 0.6061 GB, free: 15.75 MB / 426.7 MB Notification: Performance of SimCode: time 7.31e-07/0.647, allocations: 0 / 0.6061 GB, free: 15.75 MB / 426.7 MB Notification: Performance of Templates: time 0.05628/0.7033, allocations: 39.17 MB / 0.6443 GB, free: 9.008 MB / 458.7 MB make -j1 -f Chemical_Chemical.Examples.ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ElectrochemicalCell.pipe 2>&1)