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.001572/0.001572, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00199/0.00199, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.556/1.556, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.322/0.322, allocations: 37.99 MB / 307.7 MB, free: 10 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.00152/0.00152, allocations: 76.09 kB / 375.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1338, allocations: 56.46 MB / 431.7 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.2667/0.4005, allocations: 28.54 MB / 460.2 MB, free: 35.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01768/0.4183, allocations: 16.94 MB / 477.2 MB, free: 30.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006686/0.419, allocations: 10.31 kB / 477.2 MB, free: 30.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007424/0.4198, allocations: 265 kB / 477.5 MB, free: 30.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01166/0.4315, allocations: 4.531 MB / 482 MB, free: 28.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005238/0.4367, allocations: 1.88 MB / 483.9 MB, free: 27.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.4379, allocations: 0.9665 MB / 484.8 MB, free: 27.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004056/0.4383, allocations: 281.2 kB / 485.1 MB, free: 27.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009466/0.4393, allocations: 482.6 kB / 485.6 MB, free: 26.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003833/0.4431, allocations: 1.865 MB / 487.4 MB, free: 25.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.915e-05/0.4432, allocations: 39.16 kB / 487.5 MB, free: 25.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0156/0.4588, allocations: 7.334 MB / 494.8 MB, free: 24.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.4591, allocations: 109.8 kB / 494.9 MB, free: 24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003429/0.4595, allocations: 246.6 kB / 495.2 MB, free: 23.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01547/0.475, allocations: 4.642 MB / 499.8 MB, free: 22.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.689e-06/0.475, allocations: 1.25 kB / 499.8 MB, free: 22.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.475, allocations: 0 / 499.8 MB, free: 22.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.475, allocations: 0 / 499.8 MB, free: 22.54 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.006345/0.4814, allocations: 1.329 MB / 0.4894 GB, free: 21.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4815, allocations: 13.23 kB / 0.4894 GB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.4836, allocations: 237.1 kB / 0.4896 GB, free: 21.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006148/0.4842, allocations: 398.6 kB / 0.49 GB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.215e-05/0.4843, allocations: 32.09 kB / 0.49 GB, free: 21.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.4843, allocations: 32.62 kB / 0.4901 GB, free: 21.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.486, allocations: 0.6049 MB / 0.4907 GB, free: 21.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.4861, allocations: 6.062 kB / 0.4907 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.4861, allocations: 12.12 kB / 0.4907 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.4861, allocations: 8.25 kB / 0.4907 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.4879, allocations: 0.5675 MB / 0.4912 GB, free: 20.89 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.003462/0.4914, allocations: 2.639 MB / 0.4938 GB, free: 18.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.493, allocations: 458.6 kB / 0.4943 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.4935, allocations: 200.1 kB / 0.4944 GB, free: 18.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0517/0.5452, allocations: 24.21 MB / 0.5181 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/0.5453, allocations: 37.31 kB / 0.5181 GB, free: 15.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.635e-06/0.5453, allocations: 0 / 0.5181 GB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003149/0.5485, allocations: 0.8163 MB / 0.5189 GB, free: 15.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.851e-05/0.5486, allocations: 109.6 kB / 0.519 GB, free: 14.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005532/0.5491, allocations: 373.7 kB / 0.5194 GB, free: 14.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.5492, allocations: 32.11 kB / 0.5194 GB, free: 14.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.5494, allocations: 218 kB / 0.5196 GB, free: 14.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.409e-05/0.5495, allocations: 88.47 kB / 0.5197 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.5496, allocations: 76.94 kB / 0.5198 GB, free: 14.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5498, allocations: 348.1 kB / 0.5201 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004557/0.5502, allocations: 172.5 kB / 0.5203 GB, free: 13.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005448/0.5508, allocations: 268.6 kB / 0.5205 GB, free: 13.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009303/0.5517, allocations: 405 kB / 0.5209 GB, free: 13.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.5518, allocations: 9.812 kB / 0.5209 GB, free: 13.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001248/0.553, allocations: 473.8 kB / 0.5214 GB, free: 13.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.553, allocations: 6.875 kB / 0.5214 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.5531, allocations: 2.812 kB / 0.5214 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.5531, allocations: 5.688 kB / 0.5214 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.5535, allocations: 105.9 kB / 0.5215 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.5536, allocations: 13.14 kB / 0.5215 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000481/0.554, allocations: 53.53 kB / 0.5216 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.5541, allocations: 14.91 kB / 0.5216 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005814/0.5547, allocations: 281.2 kB / 0.5218 GB, free: 12.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005/0.5552, allocations: 256.7 kB / 0.5221 GB, free: 12.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000909/0.5561, allocations: 395.5 kB / 0.5225 GB, free: 12.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.168e-06/0.5561, allocations: 2.344 kB / 0.5225 GB, free: 12.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.001244/0.5574, allocations: 474.7 kB / 0.5229 GB, free: 12.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.5574, allocations: 7.5 kB / 0.5229 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.5574, allocations: 3.062 kB / 0.5229 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.974e-06/0.5574, allocations: 2.938 kB / 0.5229 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/0.5578, allocations: 97.33 kB / 0.523 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.5579, allocations: 13.95 kB / 0.523 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.5583, allocations: 43.03 kB / 0.5231 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.5583, allocations: 15.97 kB / 0.5231 GB, free: 12.16 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.000227/0.5586, allocations: 211.2 kB / 0.5233 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.5587, allocations: 38.62 kB / 0.5233 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002781/0.5615, allocations: 1.969 MB / 0.5253 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.258e-05/0.5616, allocations: 31.94 kB / 0.5253 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5616, allocations: 0 / 0.5253 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5616, allocations: 0 / 0.5253 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.563, allocations: 1.055 MB / 0.5263 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.563, allocations: 3.984 kB / 0.5263 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003477/0.5633, allocations: 80.69 kB / 0.5264 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.892e-06/0.5634, allocations: 4 kB / 0.5264 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.5634, allocations: 8 kB / 0.5264 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.5634, allocations: 0 / 0.5264 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5634, allocations: 0 / 0.5264 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.5651, allocations: 1.141 MB / 0.5275 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.5654, allocations: 207.1 kB / 0.5277 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.5655, allocations: 23.69 kB / 0.5277 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000323/0.5658, allocations: 31.97 kB / 0.5278 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.566, allocations: 31.95 kB / 0.5278 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/0.566, allocations: 15.98 kB / 0.5278 GB, free: 7.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005022/0.5665, allocations: 374.8 kB / 0.5282 GB, free: 6.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5665, allocations: 0 / 0.5282 GB, free: 6.871 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006931/0.5735, allocations: 1.152 MB / 0.5293 GB, free: 5.719 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.01121/0.5847, allocations: 1.246 MB / 0.5305 GB, free: 4.465 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002603/0.5874, allocations: 0.8827 MB / 0.5314 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5874, allocations: 0 / 0.5314 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007975/0.5882, allocations: 0.5251 MB / 0.5319 GB, free: 3.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.5899, allocations: 237.4 kB / 0.5321 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.5925, allocations: 1.619 MB / 0.5337 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.5931, allocations: 0.9755 MB / 0.5346 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001032/0.5941, allocations: 0.6076 MB / 0.5352 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.5943, allocations: 59.42 kB / 0.5353 GB, free: 15.52 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5943, allocations: 0 / 0.5353 GB, free: 15.52 MB / 414.1 MB Notification: Performance of Templates: time 0.06375/0.658, allocations: 41.48 MB / 0.5758 GB, free: 6.023 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)