Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09434/0.09434, allocations: 15.28 MB / 30.53 MB, free: 3.188 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.001015/0.001015, allocations: 194.4 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.41/1.41, allocations: 225.7 MB / 266.3 MB, free: 6.062 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.0007597/0.0007594, allocations: 90.55 kB / 321.7 MB, free: 2.191 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003127/0.0003129, allocations: 12.72 kB / 387 MB, free: 50.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08964/0.08998, allocations: 54.64 MB / 441.7 MB, free: 14.86 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.H2O_ElectrochemicalCell): time 0.02898/0.119, allocations: 24.58 MB / 466.2 MB, free: 6.203 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02345/0.1425, allocations: 23.68 MB / 489.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.1443, allocations: 35.75 kB / 490 MB, free: 13.12 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001681/0.146, allocations: 453 kB / 490.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00391/0.15, allocations: 1.087 MB / 491.5 MB, free: 11.58 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007838/0.1578, allocations: 2.483 MB / 494 MB, free: 9.082 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.161, allocations: 2.023 MB / 496 MB, free: 7.051 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001777/0.1628, allocations: 1.109 MB / 497.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.1641, allocations: 0.7941 MB / 497.9 MB, free: 5.098 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.1658, allocations: 0.9492 MB / 498.8 MB, free: 4.145 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004303/0.1662, allocations: 104 kB / 498.9 MB, free: 4.043 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006781/0.173, allocations: 1.899 MB / 0.4891 GB, free: 2.141 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007285/0.1738, allocations: 366.6 kB / 0.4895 GB, free: 1.781 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.1755, allocations: 0.8919 MB / 0.4903 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.1857, allocations: 3.857 MB / 0.4941 GB, free: 13.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.1858, allocations: 0 / 0.4941 GB, free: 13.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1858, allocations: 4 kB / 0.4941 GB, free: 13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001057/0.1859, allocations: 0 / 0.4941 GB, free: 13 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004513/0.1904, allocations: 1.99 MB / 0.496 GB, free: 10.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1905, allocations: 13.72 kB / 0.4961 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001834/0.1923, allocations: 437.9 kB / 0.4965 GB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.1943, allocations: 1.037 MB / 0.4975 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.1946, allocations: 183 kB / 0.4977 GB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004063/0.195, allocations: 171.9 kB / 0.4978 GB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004018/0.199, allocations: 2.194 MB / 0.5 GB, free: 6.816 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.1991, allocations: 4 kB / 0.5 GB, free: 6.812 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001892/0.1993, allocations: 64 kB / 0.5 GB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/0.1993, allocations: 47.94 kB / 0.5001 GB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004121/0.2034, allocations: 2.656 MB / 0.5027 GB, free: 4.039 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.2415/0.445, allocations: 7.221 MB / 0.5097 GB, free: 65.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.4469, allocations: 1.171 MB / 0.5109 GB, free: 64.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009767/0.4479, allocations: 0.5439 MB / 0.5114 GB, free: 64.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007647/0.4556, allocations: 5.051 MB / 0.5163 GB, free: 61.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.4557, allocations: 48.48 kB / 0.5164 GB, free: 61.83 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000653/0.4563, allocations: 106.5 kB / 0.5165 GB, free: 61.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 6.642e-06/0.4563, allocations: 0 / 0.5165 GB, free: 61.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=95): time 0.02139/0.4777, allocations: 4.818 MB / 0.5212 GB, free: 60.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4778, allocations: 114.8 kB / 0.5213 GB, free: 60.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.4803, allocations: 1.467 MB / 0.5227 GB, free: 60.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.4805, allocations: 42.95 kB / 0.5228 GB, free: 60.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006031/0.4811, allocations: 0.8953 MB / 0.5236 GB, free: 59.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.4814, allocations: 348 kB / 0.524 GB, free: 59.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.4816, allocations: 33.53 kB / 0.524 GB, free: 59.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4817, allocations: 373.5 kB / 0.5244 GB, free: 59.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.4828, allocations: 0.6105 MB / 0.525 GB, free: 59.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.4844, allocations: 1.322 MB / 0.5262 GB, free: 58.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.4867, allocations: 1.902 MB / 0.5281 GB, free: 57.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-05/0.4867, allocations: 6.938 kB / 0.5281 GB, free: 57.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006254/0.493, allocations: 2.346 MB / 0.5304 GB, free: 56.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.4931, allocations: 15.5 kB / 0.5304 GB, free: 56.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.874e-05/0.4931, allocations: 24.11 kB / 0.5304 GB, free: 56.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002865/0.496, allocations: 402.1 kB / 0.5308 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/0.4985, allocations: 0.5537 MB / 0.5314 GB, free: 55.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007585/0.5061, allocations: 7.357 MB / 0.5385 GB, free: 49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.5079, allocations: 105.2 kB / 0.5386 GB, free: 48.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003188/0.5082, allocations: 105.7 kB / 0.5387 GB, free: 48.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007639/0.509, allocations: 375.8 kB / 0.5391 GB, free: 48.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/0.5093, allocations: 125.4 kB / 0.5392 GB, free: 48.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.5138, allocations: 1.519 MB / 0.5407 GB, free: 48.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.5138, allocations: 11.81 kB / 0.5407 GB, free: 48.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.5138, allocations: 3.938 kB / 0.5407 GB, free: 48.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.5139, allocations: 7.141 kB / 0.5407 GB, free: 48.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006504/0.5204, allocations: 3.017 MB / 0.5437 GB, free: 46.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.5204, allocations: 3.906 kB / 0.5437 GB, free: 46.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007654/0.5212, allocations: 223.6 kB / 0.5439 GB, free: 46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002696/0.5239, allocations: 429.6 kB / 0.5443 GB, free: 45.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.977e-05/0.524, allocations: 39.73 kB / 0.5443 GB, free: 45.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006279/0.5303, allocations: 7.153 MB / 0.5513 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/0.5304, allocations: 13.59 kB / 0.5513 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004757/0.5351, allocations: 2.168 MB / 0.5535 GB, free: 37.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.5356, allocations: 217.8 kB / 0.5537 GB, free: 37.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003328/0.536, allocations: 35.77 kB / 0.5537 GB, free: 37.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009275/0.5369, allocations: 39.42 kB / 0.5537 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.5372, allocations: 112.8 kB / 0.5538 GB, free: 36.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.979e-05/0.5373, allocations: 51.27 kB / 0.5539 GB, free: 36.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00118/0.5384, allocations: 1.003 MB / 0.5549 GB, free: 36.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5384, allocations: 3.531 kB / 0.5549 GB, free: 36.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002969/0.5414, allocations: 0.8003 MB / 0.5557 GB, free: 36.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * 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,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001829/0.5433, allocations: 0.8688 MB / 0.5565 GB, free: 35.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003085/0.5464, allocations: 1.739 MB / 0.5582 GB, free: 34.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.5464, allocations: 0 / 0.5582 GB, free: 34.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.5475, allocations: 0.9863 MB / 0.5592 GB, free: 33.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/0.5501, allocations: 218.5 kB / 0.5594 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004966/0.5551, allocations: 3.62 MB / 0.5629 GB, free: 29.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007541/0.5559, allocations: 1.226 MB / 0.5641 GB, free: 28.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001378/0.5573, allocations: 326 kB / 0.5644 GB, free: 27.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003947/0.5577, allocations: 178.1 kB / 0.5646 GB, free: 27.72 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5577, allocations: 4 kB / 0.5646 GB, free: 27.72 MB / 378.7 MB Notification: Performance of Templates: time 0.03457/0.5923, allocations: 26.34 MB / 0.5903 GB, free: 1.766 MB / 378.7 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)