Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08475/0.08475, allocations: 15.28 MB / 30.53 MB, free: 3.078 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.0009051/0.0009053, 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.369/1.369, allocations: 225.7 MB / 266.3 MB, free: 6.078 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.0008231/0.0008231, allocations: 106.5 kB / 321.7 MB, free: 2.184 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003396/0.0003397, allocations: 12.89 kB / 387 MB, free: 50.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 54.65 MB / 441.7 MB, free: 14.84 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.02858/0.1333, allocations: 26.38 MB / 468 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02986/0.1632, allocations: 30.4 MB / 498.5 MB, free: 4.18 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002206/0.1654, allocations: 47.62 kB / 498.5 MB, free: 4.133 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.1673, allocations: 0.5395 MB / 499 MB, free: 3.59 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005981/0.1734, allocations: 1.615 MB / 0.4889 GB, free: 1.965 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009269/0.1826, allocations: 2.992 MB / 0.4918 GB, free: 14.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00363/0.1863, allocations: 2.613 MB / 0.4944 GB, free: 12.33 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001953/0.1883, allocations: 1.437 MB / 0.4958 GB, free: 10.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.1898, allocations: 1.09 MB / 0.4969 GB, free: 9.754 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.1914, allocations: 1.284 MB / 0.4981 GB, free: 8.465 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00028/0.1917, allocations: 136 kB / 0.4982 GB, free: 8.332 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007977/0.1996, allocations: 2.464 MB / 0.5007 GB, free: 5.863 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007168/0.2004, allocations: 490.2 kB / 0.5011 GB, free: 5.383 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001445/0.2019, allocations: 1.148 MB / 0.5022 GB, free: 4.223 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2277/0.4295, allocations: 5.046 MB / 0.5072 GB, free: 39.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.4296, allocations: 0 / 0.5072 GB, free: 39.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4296, allocations: 0.9375 kB / 0.5072 GB, free: 39.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001253/0.4297, allocations: 0 / 0.5072 GB, free: 39.84 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.0053/0.4351, allocations: 2.476 MB / 0.5096 GB, free: 38.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4351, allocations: 10.58 kB / 0.5096 GB, free: 38.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002046/0.4372, allocations: 0.4996 MB / 0.5101 GB, free: 38.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002653/0.4398, allocations: 1.226 MB / 0.5113 GB, free: 38.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.4401, allocations: 224.9 kB / 0.5115 GB, free: 38.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004958/0.4406, allocations: 210.9 kB / 0.5117 GB, free: 38.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005894/0.4465, allocations: 2.675 MB / 0.5143 GB, free: 37.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.202e-05/0.4466, allocations: 4.875 kB / 0.5143 GB, free: 37.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002498/0.4468, allocations: 89.97 kB / 0.5144 GB, free: 37.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.441e-05/0.4469, allocations: 55.14 kB / 0.5145 GB, free: 37.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006082/0.453, allocations: 3.139 MB / 0.5175 GB, free: 37.8 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.01557/0.4686, allocations: 9.211 MB / 0.5265 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/0.471, allocations: 1.837 MB / 0.5283 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.4722, allocations: 0.897 MB / 0.5292 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009546/0.4818, allocations: 7.316 MB / 0.5363 GB, free: 29.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.4819, allocations: 53.84 kB / 0.5364 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008841/0.4827, allocations: 205.3 kB / 0.5366 GB, free: 29.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=113): time 3.897e-06/0.4828, allocations: 0 / 0.5366 GB, free: 29.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.03366/0.5164, allocations: 9.537 MB / 0.5459 GB, free: 26.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.5165, allocations: 121.1 kB / 0.546 GB, free: 26.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.5179, allocations: 1.333 MB / 0.5473 GB, free: 26.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001588/0.518, allocations: 55.05 kB / 0.5474 GB, free: 26.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004874/0.5185, allocations: 1.052 MB / 0.5484 GB, free: 25.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003459/0.5189, allocations: 0.5562 MB / 0.5489 GB, free: 25.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.519, allocations: 50.03 kB / 0.549 GB, free: 25.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.5191, allocations: 401.5 kB / 0.5494 GB, free: 24.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.5203, allocations: 0.8375 MB / 0.5502 GB, free: 24.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.5218, allocations: 1.702 MB / 0.5518 GB, free: 23.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002806/0.5246, allocations: 2.674 MB / 0.5545 GB, free: 21.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.5246, allocations: 8 kB / 0.5545 GB, free: 21.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007535/0.5321, allocations: 3.472 MB / 0.5579 GB, free: 19.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.5322, allocations: 16 kB / 0.5579 GB, free: 19.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-05/0.5322, allocations: 28 kB / 0.5579 GB, free: 19.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005065/0.5373, allocations: 1.168 MB / 0.559 GB, free: 18.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/0.5391, allocations: 0.5203 MB / 0.5595 GB, free: 17.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007892/0.547, allocations: 7.029 MB / 0.5664 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/0.5493, allocations: 129 kB / 0.5665 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.5496, allocations: 147.9 kB / 0.5667 GB, free: 10.67 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009263/0.5505, allocations: 451.3 kB / 0.5671 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/0.5508, allocations: 164 kB / 0.5673 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007033/0.5578, allocations: 2.85 MB / 0.57 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.5578, allocations: 18.66 kB / 0.5701 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.5579, allocations: 4 kB / 0.5701 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.5579, allocations: 11.97 kB / 0.5701 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009576/0.5675, allocations: 4.848 MB / 0.5748 GB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.5675, allocations: 4 kB / 0.5748 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009533/0.5685, allocations: 260.4 kB / 0.5751 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004374/0.5728, allocations: 1.059 MB / 0.5761 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.573, allocations: 62.67 kB / 0.5762 GB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007723/0.5807, allocations: 6.413 MB / 0.5824 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.5808, allocations: 0 / 0.5824 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008573/0.5893, allocations: 3.681 MB / 0.586 GB, free: 6.629 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005268/0.5899, allocations: 219.1 kB / 0.5862 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002312/0.5901, allocations: 35.98 kB / 0.5863 GB, free: 6.359 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.5912, allocations: 70.47 kB / 0.5863 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.5916, allocations: 151.2 kB / 0.5865 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.5917, allocations: 75.23 kB / 0.5865 GB, free: 6.082 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001097/0.5928, allocations: 0.8686 MB / 0.5874 GB, free: 5.211 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5928, allocations: 0 / 0.5874 GB, free: 5.211 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003391/0.5962, allocations: 1.074 MB / 0.5884 GB, free: 4.137 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002055/0.5983, allocations: 1.114 MB / 0.5895 GB, free: 3.238 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005077/0.6034, allocations: 2.758 MB / 0.5922 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.6034, allocations: 0 / 0.5922 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002413/0.6058, allocations: 1.468 MB / 0.5936 GB, free: 15.03 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.6078, allocations: 264.9 kB / 0.5939 GB, free: 14.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006895/0.6147, allocations: 4.666 MB / 0.5985 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.6158, allocations: 1.399 MB / 0.5998 GB, free: 8.742 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001697/0.6175, allocations: 393.7 kB / 0.6002 GB, free: 8.398 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005286/0.618, allocations: 235.4 kB / 0.6004 GB, free: 8.172 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.618, allocations: 2.188 kB / 0.6004 GB, free: 8.172 MB / 410.7 MB Notification: Performance of Templates: time 0.06027/0.6783, allocations: 39.16 MB / 0.6387 GB, free: 1.469 MB / 442.7 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)