Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_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.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.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.006288/0.006288, allocations: 102.4 kB / 15.73 MB, free: 6.035 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.00129/0.00129, allocations: 199.2 kB / 16.68 MB, free: 5.957 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.327/1.327, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.3069/0.3069, allocations: 37.99 MB / 307.9 MB, free: 9.875 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.001458/0.001458, allocations: 67.91 kB / 433 MB, free: 5.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3398, allocations: 56.47 MB / 489.5 MB, free: 20.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0322/0.372, allocations: 28.13 MB / 0.5055 GB, free: 156 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01924/0.3914, allocations: 13.3 MB / 0.5184 GB, free: 5.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.3919, allocations: 14.22 kB / 0.5185 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008791/0.3928, allocations: 246.3 kB / 0.5187 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01417/0.407, allocations: 3.652 MB / 0.5223 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008295/0.4153, allocations: 2.364 MB / 0.5246 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001709/0.4171, allocations: 0.8873 MB / 0.5254 GB, free: 376 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004882/0.4176, allocations: 259 kB / 0.5257 GB, free: 196 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.4186, allocations: 435.1 kB / 0.5261 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00043/0.4191, allocations: 270 kB / 0.5264 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.844e-05/0.4191, allocations: 33.75 kB / 0.5264 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01659/0.4357, allocations: 7.218 MB / 0.5334 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.436, allocations: 107.6 kB / 0.5335 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004684/0.4365, allocations: 219 kB / 0.5337 GB, free: 10.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.4477, allocations: 4.405 MB / 0.538 GB, free: 6.047 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.4477, allocations: 0 / 0.538 GB, free: 6.047 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.4478, allocations: 0 / 0.538 GB, free: 6.047 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.4478, allocations: 3.938 kB / 0.5381 GB, free: 6.043 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.004071/0.4519, allocations: 1.224 MB / 0.5392 GB, free: 4.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.4519, allocations: 15.89 kB / 0.5393 GB, free: 4.754 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/0.4536, allocations: 212.2 kB / 0.5395 GB, free: 4.547 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.4542, allocations: 383.2 kB / 0.5398 GB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/0.4543, allocations: 25.03 kB / 0.5399 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.4543, allocations: 32.38 kB / 0.5399 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.4558, allocations: 0.5782 MB / 0.5405 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.4558, allocations: 0 / 0.5405 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.121e-05/0.4559, allocations: 16 kB / 0.5405 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4559, allocations: 8 kB / 0.5405 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.4574, allocations: 0.525 MB / 0.541 GB, free: 2.906 MB / 414.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.002932/0.4604, allocations: 2.621 MB / 0.5435 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4619, allocations: 466.1 kB / 0.544 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004213/0.4623, allocations: 188.7 kB / 0.5442 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05099/0.5133, allocations: 24.29 MB / 0.5679 GB, free: 4.211 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.5134, allocations: 34.56 kB / 0.5679 GB, free: 4.168 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.515e-06/0.5134, allocations: 4 kB / 0.5679 GB, free: 4.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003117/0.5165, allocations: 0.7946 MB / 0.5687 GB, free: 3.363 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.851e-05/0.5166, allocations: 106.8 kB / 0.5688 GB, free: 3.234 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.517, allocations: 304.5 kB / 0.5691 GB, free: 2.934 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.5171, allocations: 33.7 kB / 0.5691 GB, free: 2.895 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.5172, allocations: 204.2 kB / 0.5693 GB, free: 2.691 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.109e-05/0.5173, allocations: 90.77 kB / 0.5694 GB, free: 2.602 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.5174, allocations: 69.69 kB / 0.5695 GB, free: 2.527 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.5176, allocations: 346.8 kB / 0.5698 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.518, allocations: 135.9 kB / 0.5699 GB, free: 2.047 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/0.5184, allocations: 238.9 kB / 0.5702 GB, free: 1.773 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007964/0.5192, allocations: 351.2 kB / 0.5705 GB, free: 1.398 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.5192, allocations: 0 / 0.5705 GB, free: 1.398 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009891/0.5202, allocations: 432.6 kB / 0.5709 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.5203, allocations: 8 kB / 0.5709 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5203, allocations: 8.297 kB / 0.5709 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.5203, allocations: 11.94 kB / 0.5709 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.5206, allocations: 83.88 kB / 0.571 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.5207, allocations: 7.938 kB / 0.571 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.521, allocations: 43.66 kB / 0.5711 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.521, allocations: 16 kB / 0.5711 GB, free: 0.793 MB / 446.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.0001985/0.5212, allocations: 157.8 kB / 0.5712 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.68e-05/0.5213, allocations: 39.56 kB / 0.5713 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.5241, allocations: 1.881 MB / 0.5731 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.8e-05/0.5241, allocations: 31.89 kB / 0.5731 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5241, allocations: 0 / 0.5731 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.5241, allocations: 3.984 kB / 0.5731 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.5254, allocations: 1.019 MB / 0.5741 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.5255, allocations: 0 / 0.5741 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003073/0.5258, allocations: 75.88 kB / 0.5742 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.227e-06/0.5258, allocations: 0 / 0.5742 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.5258, allocations: 8 kB / 0.5742 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.5258, allocations: 3.938 kB / 0.5742 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.5258, allocations: 0 / 0.5742 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.5275, allocations: 1.084 MB / 0.5753 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.5277, allocations: 171.8 kB / 0.5754 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.5278, allocations: 19.84 kB / 0.5755 GB, free: 12.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.528, allocations: 23.92 kB / 0.5755 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.5282, allocations: 31.95 kB / 0.5755 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.5282, allocations: 19.98 kB / 0.5755 GB, free: 12.11 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003901/0.5286, allocations: 327.1 kB / 0.5759 GB, free: 11.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5286, allocations: 0 / 0.5759 GB, free: 11.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004152/0.5327, allocations: 0.9955 MB / 0.5768 GB, free: 10.8 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.004569/0.5373, allocations: 1.161 MB / 0.578 GB, free: 9.629 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.5386, allocations: 0.5834 MB / 0.5785 GB, free: 9.047 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5387, allocations: 0 / 0.5785 GB, free: 9.047 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006967/0.5394, allocations: 0.5164 MB / 0.579 GB, free: 8.531 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.5406, allocations: 224.9 kB / 0.5792 GB, free: 8.316 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.5428, allocations: 1.508 MB / 0.5807 GB, free: 6.781 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.5433, allocations: 0.9638 MB / 0.5817 GB, free: 5.793 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004201/0.5437, allocations: 268.4 kB / 0.5819 GB, free: 5.527 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.5438, allocations: 47.44 kB / 0.582 GB, free: 5.484 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5438, allocations: 0 / 0.582 GB, free: 5.484 MB / 462.1 MB Notification: Performance of Templates: time 0.05543/0.5993, allocations: 39.54 MB / 0.6206 GB, free: 13.9 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)