Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.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.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1143/0.1143, allocations: 15.27 MB / 30.52 MB, free: 3.082 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.0008849/0.000885, allocations: 194.3 kB / 35.62 MB, free: 2.234 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.411/1.411, allocations: 225.7 MB / 266.3 MB, free: 6.07 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.0008611/0.0008613, allocations: 98.86 kB / 321.7 MB, free: 2.207 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 9.391 kB / 387 MB, free: 50.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08328/0.08359, 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.AcidBase.Phosphate): time 0.02519/0.1088, allocations: 24.9 MB / 466.6 MB, free: 5.898 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03246/0.1413, allocations: 35.18 MB / 0.49 GB, free: 0.582 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001356/0.1427, allocations: 39.69 kB / 0.49 GB, free: 0.543 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.144, allocations: 0.5123 MB / 0.4905 GB, free: 28 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005945/0.15, allocations: 2.228 MB / 0.4927 GB, free: 13.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00795/0.158, allocations: 3.074 MB / 0.4957 GB, free: 10.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003231/0.1612, allocations: 2.669 MB / 0.4983 GB, free: 8.016 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001543/0.1628, allocations: 1.354 MB / 0.4996 GB, free: 6.625 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.1642, allocations: 1.27 MB / 0.5009 GB, free: 5.352 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.166, allocations: 1.487 MB / 0.5023 GB, free: 3.859 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.1663, allocations: 136 kB / 0.5025 GB, free: 3.727 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008532/0.1748, allocations: 2.893 MB / 0.5053 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007145/0.1756, allocations: 0.51 MB / 0.5058 GB, free: 324 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1961/0.3717, allocations: 1.105 MB / 0.5069 GB, free: 32.56 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01072/0.3824, allocations: 5.413 MB / 0.5121 GB, free: 32.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3825, allocations: 1.188 kB / 0.5121 GB, free: 32.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3825, allocations: 0 / 0.5121 GB, free: 32.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.036e-05/0.3825, allocations: 0 / 0.5121 GB, free: 32.41 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.006675/0.3892, allocations: 2.451 MB / 0.5145 GB, free: 31.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.3893, allocations: 11.09 kB / 0.5145 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002524/0.3918, allocations: 462 kB / 0.515 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.3942, allocations: 1.027 MB / 0.516 GB, free: 30.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/0.3944, allocations: 253 kB / 0.5162 GB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003901/0.3948, allocations: 190 kB / 0.5164 GB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004419/0.3992, allocations: 2.493 MB / 0.5189 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/0.3993, allocations: 1.281 kB / 0.5189 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/0.3995, allocations: 76.88 kB / 0.5189 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.723e-05/0.3995, allocations: 44.22 kB / 0.519 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005029/0.4045, allocations: 3.18 MB / 0.5221 GB, free: 30.4 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.0126/0.4172, allocations: 8.274 MB / 0.5302 GB, free: 27.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007671/0.4248, allocations: 5.403 MB / 0.5354 GB, free: 27.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.4267, allocations: 1.27 MB / 0.5367 GB, free: 27.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.4379, allocations: 10.05 MB / 0.5465 GB, free: 20.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.438, allocations: 50.16 kB / 0.5465 GB, free: 20.66 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001177/0.4392, allocations: 235.4 kB / 0.5468 GB, free: 20.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=158): time 4.598e-06/0.4392, allocations: 0 / 0.5468 GB, free: 20.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=187): time 0.02681/0.466, allocations: 7.58 MB / 0.5542 GB, free: 17.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.4661, allocations: 77.39 kB / 0.5542 GB, free: 17.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009827/0.4671, allocations: 0.8882 MB / 0.5551 GB, free: 17.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/0.4674, allocations: 62.38 kB / 0.5552 GB, free: 17.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.4677, allocations: 0.7968 MB / 0.5559 GB, free: 16.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003717/0.4681, allocations: 0.6365 MB / 0.5566 GB, free: 16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.4682, allocations: 45.69 kB / 0.5566 GB, free: 15.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.4683, allocations: 384.8 kB / 0.557 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.4695, allocations: 0.78 MB / 0.5577 GB, free: 15.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.4708, allocations: 1.363 MB / 0.5591 GB, free: 13.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/0.4735, allocations: 2.339 MB / 0.5614 GB, free: 12.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.4735, allocations: 4 kB / 0.5614 GB, free: 12.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01077/0.4843, allocations: 3.38 MB / 0.5647 GB, free: 9.809 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.4844, allocations: 14.66 kB / 0.5647 GB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.4844, allocations: 16 kB / 0.5647 GB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003634/0.488, allocations: 0.8359 MB / 0.5655 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001909/0.49, allocations: 0.5144 MB / 0.566 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004788/0.4948, allocations: 3.544 MB / 0.5695 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.4968, allocations: 108.6 kB / 0.5696 GB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.497, allocations: 127.9 kB / 0.5697 GB, free: 5.109 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (268): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007321/0.4977, allocations: 394.9 kB / 0.5701 GB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.4979, allocations: 152.8 kB / 0.5702 GB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01106/0.509, allocations: 3.328 MB / 0.5735 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.509, allocations: 22.66 kB / 0.5735 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5091, allocations: 0 / 0.5735 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.694e-05/0.5091, allocations: 15.95 kB / 0.5735 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/0.523, allocations: 5.22 MB / 0.5786 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.523, allocations: 4 kB / 0.5786 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.5245, allocations: 361.1 kB / 0.5789 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003723/0.5282, allocations: 0.8101 MB / 0.5797 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00021/0.5285, allocations: 70.56 kB / 0.5798 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004833/0.5333, allocations: 3.444 MB / 0.5832 GB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.5333, allocations: 0 / 0.5832 GB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/0.5461, allocations: 4.225 MB / 0.5873 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004931/0.5467, allocations: 207.2 kB / 0.5875 GB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003638/0.547, allocations: 36 kB / 0.5875 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.5482, allocations: 70.52 kB / 0.5876 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005201/0.5488, allocations: 200.4 kB / 0.5878 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001916/0.549, allocations: 82.56 kB / 0.5879 GB, free: 2.758 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008055/0.5498, allocations: 0.5694 MB / 0.5884 GB, free: 2.184 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5498, allocations: 0 / 0.5884 GB, free: 2.184 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003467/0.5533, allocations: 1.132 MB / 0.5895 GB, free: 1.051 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(4,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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0028/0.5561, allocations: 1.288 MB / 0.5908 GB, free: 8 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004409/0.5605, allocations: 2.547 MB / 0.5933 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5605, allocations: 2.656 kB / 0.5933 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.5629, allocations: 1.488 MB / 0.5947 GB, free: 12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.5644, allocations: 299.8 kB / 0.595 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006211/0.5706, allocations: 4.251 MB / 0.5992 GB, free: 7.547 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008294/0.5715, allocations: 1.328 MB / 0.6005 GB, free: 6.207 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001749/0.5733, allocations: 420.1 kB / 0.6009 GB, free: 5.844 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005891/0.5738, allocations: 267 kB / 0.6011 GB, free: 5.594 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5739, allocations: 0 / 0.6011 GB, free: 5.594 MB / 410.7 MB Notification: Performance of Templates: time 0.05934/0.6332, allocations: 43.3 MB / 0.6434 GB, free: 10.78 MB / 458.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)