Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001111, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 189.2 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3228/0.3228, allocations: 37.98 MB / 307.4 MB, free: 10.14 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 74.23 kB / 374.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1106, allocations: 56.47 MB / 431.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.2427/0.3533, allocations: 28.63 MB / 459.8 MB, free: 35.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01827/0.3716, allocations: 17.09 MB / 476.9 MB, free: 30.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007738/0.3726, allocations: 14.81 kB / 476.9 MB, free: 30.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009173/0.3735, allocations: 231.1 kB / 477.2 MB, free: 30.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01216/0.3857, allocations: 4.013 MB / 481.2 MB, free: 28.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00533/0.391, allocations: 1.695 MB / 482.9 MB, free: 27.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.3925, allocations: 0.9668 MB / 483.8 MB, free: 27.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006443/0.3931, allocations: 287.9 kB / 484.1 MB, free: 27.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.3943, allocations: 482.5 kB / 484.6 MB, free: 27.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003797/0.3981, allocations: 1.875 MB / 486.5 MB, free: 26.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.3983, allocations: 36.66 kB / 486.5 MB, free: 26.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01576/0.4141, allocations: 7.392 MB / 493.9 MB, free: 24.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002951/0.4144, allocations: 112.2 kB / 494 MB, free: 24.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005139/0.415, allocations: 246.4 kB / 494.3 MB, free: 24.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01497/0.4299, allocations: 4.654 MB / 498.9 MB, free: 22.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.43, allocations: 0.7031 kB / 498.9 MB, free: 22.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.43, allocations: 0.5312 kB / 498.9 MB, free: 22.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.43, allocations: 0 / 498.9 MB, free: 22.75 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006128/0.4362, allocations: 1.33 MB / 0.4885 GB, free: 21.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.4362, allocations: 13.98 kB / 0.4885 GB, free: 21.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002083/0.4383, allocations: 238.5 kB / 0.4888 GB, free: 21.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.4389, allocations: 396.9 kB / 0.4891 GB, free: 21.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.439, allocations: 31.03 kB / 0.4892 GB, free: 21.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.439, allocations: 31.81 kB / 0.4892 GB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.4407, allocations: 0.5989 MB / 0.4898 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.4407, allocations: 1.125 kB / 0.4898 GB, free: 21.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-05/0.4407, allocations: 16.77 kB / 0.4898 GB, free: 21.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.4408, allocations: 8.344 kB / 0.4898 GB, free: 21.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.4424, allocations: 0.5678 MB / 0.4904 GB, free: 21.1 MB / 382.1 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.003124/0.4455, allocations: 2.634 MB / 0.4929 GB, free: 18.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.447, allocations: 464.6 kB / 0.4934 GB, free: 18.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.4475, allocations: 204.7 kB / 0.4936 GB, free: 18.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04603/0.4935, allocations: 24.22 MB / 0.5172 GB, free: 16.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.4936, allocations: 32.97 kB / 0.5172 GB, free: 16.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.675e-06/0.4936, allocations: 0 / 0.5172 GB, free: 16.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002877/0.4965, allocations: 0.8145 MB / 0.518 GB, free: 15.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/0.4966, allocations: 115.5 kB / 0.5182 GB, free: 15.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/0.497, allocations: 371 kB / 0.5185 GB, free: 15.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.4971, allocations: 32.61 kB / 0.5185 GB, free: 15.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.4973, allocations: 227.1 kB / 0.5188 GB, free: 15.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.21e-05/0.4974, allocations: 85.39 kB / 0.5188 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.4975, allocations: 77.53 kB / 0.5189 GB, free: 15.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.4977, allocations: 347.8 kB / 0.5192 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.4981, allocations: 166.1 kB / 0.5194 GB, free: 14.63 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.4986, allocations: 265 kB / 0.5197 GB, free: 14.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000796/0.4994, allocations: 399.2 kB / 0.52 GB, free: 14.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.4994, allocations: 3.938 kB / 0.52 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001048/0.5005, allocations: 480.9 kB / 0.5205 GB, free: 13.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.5005, allocations: 6.312 kB / 0.5205 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.5005, allocations: 2.625 kB / 0.5205 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.5005, allocations: 9.844 kB / 0.5205 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.501, allocations: 101.2 kB / 0.5206 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.501, allocations: 4.062 kB / 0.5206 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.5014, allocations: 55.47 kB / 0.5207 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.5015, allocations: 24.92 kB / 0.5207 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005159/0.502, allocations: 271.3 kB / 0.521 GB, free: 13.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004461/0.5025, allocations: 257.5 kB / 0.5212 GB, free: 13.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008123/0.5033, allocations: 395.5 kB / 0.5216 GB, free: 13.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.595e-06/0.5033, allocations: 6.281 kB / 0.5216 GB, free: 13.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001014/0.5043, allocations: 475.2 kB / 0.522 GB, free: 12.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.5043, allocations: 5.719 kB / 0.522 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.5043, allocations: 2.656 kB / 0.522 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.412e-06/0.5043, allocations: 9.656 kB / 0.5221 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.5047, allocations: 96.39 kB / 0.5221 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5047, allocations: 7.844 kB / 0.5222 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004263/0.5052, allocations: 57.83 kB / 0.5222 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.5052, allocations: 16.88 kB / 0.5222 GB, free: 12.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002367/0.5055, allocations: 208.4 kB / 0.5224 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-05/0.5056, allocations: 37.03 kB / 0.5225 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002623/0.5082, allocations: 1.974 MB / 0.5244 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.102e-05/0.5082, allocations: 31.94 kB / 0.5244 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5083, allocations: 4 kB / 0.5244 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5083, allocations: 0 / 0.5244 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.5093, allocations: 1.055 MB / 0.5254 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.5094, allocations: 0 / 0.5254 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003403/0.5097, allocations: 75.88 kB / 0.5255 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.5097, allocations: 0 / 0.5255 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5097, allocations: 8 kB / 0.5255 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.5098, allocations: 4 kB / 0.5255 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5098, allocations: 4 kB / 0.5255 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.5112, allocations: 1.129 MB / 0.5266 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.5115, allocations: 203.8 kB / 0.5268 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.5116, allocations: 35.62 kB / 0.5269 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.5119, allocations: 35.95 kB / 0.5269 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.471e-05/0.512, allocations: 31.95 kB / 0.5269 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.512, allocations: 12 kB / 0.5269 GB, free: 8.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004128/0.5125, allocations: 382.8 kB / 0.5273 GB, free: 7.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5125, allocations: 0 / 0.5273 GB, free: 7.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005435/0.5179, allocations: 1.152 MB / 0.5284 GB, free: 6.562 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008286/0.5262, allocations: 1.269 MB / 0.5297 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.5285, allocations: 0.8796 MB / 0.5305 GB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.5285, allocations: 4 kB / 0.5305 GB, free: 4.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007952/0.5293, allocations: 0.5212 MB / 0.531 GB, free: 3.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.5307, allocations: 248.2 kB / 0.5313 GB, free: 3.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.5333, allocations: 1.962 MB / 0.5332 GB, free: 1.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.5339, allocations: 0.9794 MB / 0.5342 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008439/0.5347, allocations: 0.5999 MB / 0.5347 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.5349, allocations: 55.42 kB / 0.5348 GB, free: 0 / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5349, allocations: 0 / 0.5348 GB, free: 0 / 398.1 MB Notification: Performance of Templates: time 0.05466/0.5896, allocations: 41.32 MB / 0.5751 GB, free: 6.672 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1)