Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.conf.json 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) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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) Running command: translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 184.2 kB / 16.71 MB, free: 4.969 MB / 13.93 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.321/1.321, allocations: 225.7 MB / 243.2 MB, free: 8.473 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.000766/0.000766, allocations: 98.75 kB / 294.4 MB, free: 9.52 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3751/0.3751, allocations: 48.79 MB / 394.3 MB, free: 33.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002767/0.0002767, allocations: 8 kB / 468.1 MB, free: 9.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3075, allocations: 63.08 MB / 0.5187 GB, free: 37.69 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.03824/0.3458, allocations: 52.56 MB / 0.57 GB, free: 12.47 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01608/0.3619, allocations: 14.53 MB / 0.5842 GB, free: 24 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006482/0.3626, allocations: 11.94 kB / 0.5842 GB, free: 12 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000846/0.3635, allocations: 208.8 kB / 0.5844 GB, free: 15.87 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008752/0.3644, allocations: 283.4 kB / 0.5847 GB, free: 15.65 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01477/0.3791, allocations: 3.758 MB / 0.5884 GB, free: 12.69 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001644/0.3808, allocations: 1.071 MB / 0.5894 GB, free: 11.61 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004562/0.3813, allocations: 205.6 kB / 0.5896 GB, free: 11.41 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004022/0.3817, allocations: 250.9 kB / 0.5899 GB, free: 11.16 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003717/0.3821, allocations: 298.7 kB / 0.5902 GB, free: 10.87 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.3821, allocations: 20 kB / 0.5902 GB, free: 10.85 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01237/0.3945, allocations: 5.928 MB / 0.596 GB, free: 4.914 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.3946, allocations: 63.69 kB / 0.596 GB, free: 4.852 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003442/0.395, allocations: 236.7 kB / 0.5962 GB, free: 4.613 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008821/0.4038, allocations: 3.722 MB / 0.5999 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4039, allocations: 0 / 0.5999 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4039, allocations: 0 / 0.5999 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.4039, allocations: 4 kB / 0.5999 GB, free: 0.8789 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00272/0.4066, allocations: 1.064 MB / 0.6009 GB, free: 15.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.4067, allocations: 17.05 kB / 0.6009 GB, free: 15.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003734/0.4071, allocations: 88.33 kB / 0.601 GB, free: 15.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.4075, allocations: 331.3 kB / 0.6013 GB, free: 15.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.4075, allocations: 25.03 kB / 0.6014 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.254e-05/0.4076, allocations: 44.27 kB / 0.6014 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000844/0.4084, allocations: 418 kB / 0.6018 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.4085, allocations: 0 / 0.6018 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.4085, allocations: 16 kB / 0.6018 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.4085, allocations: 8 kB / 0.6018 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.4092, allocations: 290.3 kB / 0.6021 GB, free: 14.48 MB / 426.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.00217/0.4114, allocations: 2.212 MB / 0.6043 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/0.4121, allocations: 257.3 kB / 0.6045 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.4123, allocations: 100.8 kB / 0.6046 GB, free: 11.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06054/0.4728, allocations: 32.3 MB / 0.6361 GB, free: 7.547 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.4729, allocations: 38.5 kB / 0.6362 GB, free: 7.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.4729, allocations: 0 / 0.6362 GB, free: 7.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.004731/0.4777, allocations: 1.483 MB / 0.6376 GB, free: 5.957 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.4777, allocations: 59.41 kB / 0.6377 GB, free: 5.887 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.4781, allocations: 317.7 kB / 0.638 GB, free: 5.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.4781, allocations: 33.7 kB / 0.638 GB, free: 5.531 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.4782, allocations: 196.5 kB / 0.6382 GB, free: 5.336 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.496e-05/0.4783, allocations: 126.2 kB / 0.6383 GB, free: 5.211 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/0.4784, allocations: 4 kB / 0.6383 GB, free: 5.207 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4785, allocations: 346.8 kB / 0.6387 GB, free: 4.859 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.4787, allocations: 116 kB / 0.6388 GB, free: 4.746 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.479, allocations: 177 kB / 0.6389 GB, free: 4.555 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005066/0.4795, allocations: 308.5 kB / 0.6392 GB, free: 4.234 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4795, allocations: 4 kB / 0.6392 GB, free: 4.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009495/0.4805, allocations: 438.2 kB / 0.6397 GB, free: 3.789 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.513e-05/0.4806, allocations: 125.5 kB / 0.6398 GB, free: 3.645 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4806, allocations: 3.984 kB / 0.6398 GB, free: 3.641 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000503/0.4811, allocations: 97.56 kB / 0.6399 GB, free: 3.539 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/0.4815, allocations: 79.91 kB / 0.64 GB, free: 3.461 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008478/0.4823, allocations: 1.116 MB / 0.641 GB, free: 2.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.4826, allocations: 35.91 kB / 0.6411 GB, free: 2.258 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.4827, allocations: 19.98 kB / 0.6411 GB, free: 2.238 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.063e-06/0.4827, allocations: 8.094 kB / 0.6411 GB, free: 2.23 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007761/0.4835, allocations: 353 kB / 0.6414 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/0.4835, allocations: 0 / 0.6414 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004598/0.484, allocations: 105.7 kB / 0.6415 GB, free: 1.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.4843, allocations: 75.91 kB / 0.6416 GB, free: 1.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007576/0.4851, allocations: 1.109 MB / 0.6427 GB, free: 0.5352 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.4853, allocations: 44.12 kB / 0.6427 GB, free: 0.4922 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.4854, allocations: 12 kB / 0.6428 GB, free: 492 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001945/0.4856, allocations: 229.6 kB / 0.643 GB, free: 252 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-05/0.4856, allocations: 43.53 kB / 0.643 GB, free: 208 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.4873, allocations: 1.178 MB / 0.6442 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.4873, allocations: 7.984 kB / 0.6442 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.4873, allocations: 4 kB / 0.6442 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4873, allocations: 3.984 kB / 0.6442 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000752/0.4881, allocations: 0.6723 MB / 0.6448 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4881, allocations: 0 / 0.6448 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.4885, allocations: 75.83 kB / 0.6449 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006075/0.4891, allocations: 141.5 kB / 0.645 GB, free: 14.06 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.4891, allocations: 12 kB / 0.6451 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008711/0.49, allocations: 1.191 MB / 0.6462 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.49, allocations: 3.938 kB / 0.6462 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.4916, allocations: 1.208 MB / 0.6474 GB, free: 11.56 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.4918, allocations: 168.2 kB / 0.6476 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.4919, allocations: 7.938 kB / 0.6476 GB, free: 11.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.4921, allocations: 23.98 kB / 0.6476 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.4922, allocations: 23.97 kB / 0.6476 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.4923, allocations: 15.98 kB / 0.6476 GB, free: 11.31 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002099/0.4925, allocations: 223.2 kB / 0.6478 GB, free: 11.09 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4925, allocations: 0 / 0.6478 GB, free: 11.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002423/0.4949, allocations: 0.9293 MB / 0.6488 GB, free: 10.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003177/0.4981, allocations: 0.9787 MB / 0.6497 GB, free: 9.176 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.4996, allocations: 0.6793 MB / 0.6504 GB, free: 8.496 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4997, allocations: 0 / 0.6504 GB, free: 8.496 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007005/0.5004, allocations: 397 kB / 0.6507 GB, free: 8.109 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.5015, allocations: 193.2 kB / 0.6509 GB, free: 7.922 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.5035, allocations: 1.598 MB / 0.6525 GB, free: 6.301 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.5039, allocations: 0.8441 MB / 0.6533 GB, free: 5.43 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004168/0.5044, allocations: 195 kB / 0.6535 GB, free: 5.242 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.482e-05/0.5045, allocations: 35.42 kB / 0.6535 GB, free: 5.207 MB / 474.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5045, allocations: 7.938 kB / 0.6535 GB, free: 5.199 MB / 474.7 MB Notification: Performance of Templates: time 0.2515/0.756, allocations: 35.36 MB / 0.6881 GB, free: 140.4 MB / 490.7 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)