Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006925/0.006925, allocations: 102 kB / 15.73 MB, free: 6.039 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.00156/0.00156, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.421/1.421, allocations: 205.1 MB / 222.5 MB, free: 4.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3402/0.3402, allocations: 39.95 MB / 309.8 MB, free: 9.664 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.2. 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.001592/0.001592, allocations: 71.89 kB / 435.8 MB, free: 2.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3284, allocations: 56.87 MB / 492.7 MB, free: 19.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03018/0.3587, allocations: 28.14 MB / 0.5086 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01824/0.377, allocations: 13.3 MB / 0.5216 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005044/0.3776, allocations: 13.56 kB / 0.5216 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009164/0.3785, allocations: 247.5 kB / 0.5218 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01315/0.3916, allocations: 3.648 MB / 0.5254 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008527/0.4002, allocations: 2.361 MB / 0.5277 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.4019, allocations: 0.8925 MB / 0.5286 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004582/0.4024, allocations: 248.4 kB / 0.5288 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008773/0.4033, allocations: 447.9 kB / 0.5292 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.4037, allocations: 269 kB / 0.5295 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.4037, allocations: 37.19 kB / 0.5295 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01524/0.419, allocations: 7.228 MB / 0.5366 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.4192, allocations: 91.73 kB / 0.5367 GB, free: 7.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.4196, allocations: 223 kB / 0.5369 GB, free: 7.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01282/0.4325, allocations: 4.398 MB / 0.5412 GB, free: 2.867 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4325, allocations: 4 kB / 0.5412 GB, free: 2.863 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4325, allocations: 0 / 0.5412 GB, free: 2.863 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.125e-05/0.4325, allocations: 0 / 0.5412 GB, free: 2.863 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003597/0.4361, allocations: 1.224 MB / 0.5424 GB, free: 1.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.4362, allocations: 11.89 kB / 0.5424 GB, free: 1.578 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.4379, allocations: 224.2 kB / 0.5426 GB, free: 1.359 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000687/0.4386, allocations: 375.2 kB / 0.543 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.4387, allocations: 37.02 kB / 0.543 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.4387, allocations: 28.38 kB / 0.543 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.4403, allocations: 0.5744 MB / 0.5436 GB, free: 280 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.4403, allocations: 4 kB / 0.5436 GB, free: 276 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.235e-05/0.4404, allocations: 16 kB / 0.5436 GB, free: 260 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.4404, allocations: 8 kB / 0.5436 GB, free: 252 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.442, allocations: 0.5251 MB / 0.5441 GB, free: 15.71 MB / 430.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.00367/0.4457, allocations: 2.625 MB / 0.5467 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.4473, allocations: 466.1 kB / 0.5471 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.4477, allocations: 188.7 kB / 0.5473 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05188/0.4996, allocations: 24.29 MB / 0.571 GB, free: 1.027 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/0.4997, allocations: 42.55 kB / 0.5711 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.836e-06/0.4997, allocations: 0 / 0.5711 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003285/0.503, allocations: 0.7946 MB / 0.5718 GB, free: 180 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/0.5031, allocations: 106.8 kB / 0.5719 GB, free: 48 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000463/0.5036, allocations: 312.5 kB / 0.5722 GB, free: 15.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.5036, allocations: 25.7 kB / 0.5723 GB, free: 15.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.5038, allocations: 212.2 kB / 0.5725 GB, free: 15.49 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.5039, allocations: 86.73 kB / 0.5725 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.5041, allocations: 65.69 kB / 0.5726 GB, free: 15.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.5042, allocations: 346.8 kB / 0.5729 GB, free: 14.99 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.5046, allocations: 135.9 kB / 0.5731 GB, free: 14.86 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/0.5051, allocations: 242.8 kB / 0.5733 GB, free: 14.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000862/0.506, allocations: 355.2 kB / 0.5736 GB, free: 14.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.506, allocations: 0 / 0.5736 GB, free: 14.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001112/0.5071, allocations: 428.7 kB / 0.574 GB, free: 13.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.5072, allocations: 4 kB / 0.574 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.5072, allocations: 7.938 kB / 0.5741 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.5072, allocations: 7.938 kB / 0.5741 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.5076, allocations: 84.19 kB / 0.5741 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.5076, allocations: 4 kB / 0.5741 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.5079, allocations: 43.67 kB / 0.5742 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.508, allocations: 19.98 kB / 0.5742 GB, free: 13.61 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002049/0.5082, allocations: 157.8 kB / 0.5744 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.5083, allocations: 35.53 kB / 0.5744 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002538/0.5108, allocations: 1.897 MB / 0.5762 GB, free: 11.49 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.464e-05/0.5109, allocations: 35.89 kB / 0.5763 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.5109, allocations: 0 / 0.5763 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.5109, allocations: 3.984 kB / 0.5763 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.512, allocations: 1.008 MB / 0.5773 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.512, allocations: 0 / 0.5773 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/0.5123, allocations: 75.81 kB / 0.5773 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.485e-06/0.5124, allocations: 4 kB / 0.5773 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.5124, allocations: 8 kB / 0.5774 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.5124, allocations: 7.938 kB / 0.5774 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.5124, allocations: 0 / 0.5774 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.5139, allocations: 1.077 MB / 0.5784 GB, free: 9.203 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.5141, allocations: 163.9 kB / 0.5786 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.184e-05/0.5142, allocations: 19.75 kB / 0.5786 GB, free: 9.004 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.5145, allocations: 27.91 kB / 0.5786 GB, free: 8.977 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.5146, allocations: 35.95 kB / 0.5786 GB, free: 8.941 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.5146, allocations: 11.98 kB / 0.5787 GB, free: 8.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000376/0.515, allocations: 323.1 kB / 0.579 GB, free: 8.617 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.515, allocations: 7.938 kB / 0.579 GB, free: 8.609 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003218/0.5182, allocations: 0.9877 MB / 0.5799 GB, free: 7.621 MB / 462.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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * 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.005605/0.5239, allocations: 1.173 MB / 0.5811 GB, free: 6.441 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.5253, allocations: 0.5833 MB / 0.5817 GB, free: 5.859 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5253, allocations: 4 kB / 0.5817 GB, free: 5.855 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008553/0.5262, allocations: 0.5126 MB / 0.5822 GB, free: 5.344 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.5276, allocations: 218 kB / 0.5824 GB, free: 5.137 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.5301, allocations: 1.519 MB / 0.5839 GB, free: 3.586 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000635/0.5308, allocations: 0.9638 MB / 0.5848 GB, free: 2.598 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005164/0.5313, allocations: 274.8 kB / 0.5851 GB, free: 2.324 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.5315, allocations: 35.44 kB / 0.5851 GB, free: 2.289 MB / 462.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5315, allocations: 4 kB / 0.5851 GB, free: 2.285 MB / 462.1 MB Notification: Performance of Templates: time 0.05979/0.5913, allocations: 39.54 MB / 0.6237 GB, free: 10.7 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)