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.004445/0.004445, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.001037/0.001037, allocations: 191.9 kB / 16.67 MB, free: 5.938 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.35/1.35, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.3346/0.3346, allocations: 39.95 MB / 309.8 MB, free: 9.418 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.001691/0.001691, allocations: 67.91 kB / 435.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3321, allocations: 56.87 MB / 492.6 MB, free: 19.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03079/0.363, allocations: 28.13 MB / 0.5086 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01804/0.3811, allocations: 13.31 MB / 0.5216 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006511/0.3818, allocations: 10.94 kB / 0.5216 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009824/0.3828, allocations: 255 kB / 0.5218 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01356/0.3964, allocations: 3.644 MB / 0.5254 GB, free: 1.062 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008813/0.4052, allocations: 2.361 MB / 0.5277 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.4069, allocations: 0.8942 MB / 0.5286 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004996/0.4074, allocations: 247.8 kB / 0.5288 GB, free: 14.65 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009993/0.4084, allocations: 439.8 kB / 0.5292 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003828/0.4088, allocations: 269.2 kB / 0.5295 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.4089, allocations: 33.78 kB / 0.5295 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01659/0.4255, allocations: 7.234 MB / 0.5366 GB, free: 7.449 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.4257, allocations: 95.72 kB / 0.5367 GB, free: 7.355 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.4261, allocations: 219 kB / 0.5369 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.4384, allocations: 4.412 MB / 0.5412 GB, free: 2.719 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4385, allocations: 0 / 0.5412 GB, free: 2.719 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4385, allocations: 4 kB / 0.5412 GB, free: 2.715 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.4385, allocations: 0 / 0.5412 GB, free: 2.715 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.003276/0.4418, allocations: 1.259 MB / 0.5424 GB, free: 1.402 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.4418, allocations: 11.89 kB / 0.5424 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001718/0.4436, allocations: 212.5 kB / 0.5426 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006227/0.4442, allocations: 383.4 kB / 0.543 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.4442, allocations: 29.03 kB / 0.543 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.4443, allocations: 24.38 kB / 0.543 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.4458, allocations: 0.5861 MB / 0.5436 GB, free: 92 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.4458, allocations: 0 / 0.5436 GB, free: 92 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.4458, allocations: 16 kB / 0.5436 GB, free: 76 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4459, allocations: 8 kB / 0.5436 GB, free: 68 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.4475, allocations: 0.5289 MB / 0.5442 GB, free: 15.54 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.003032/0.4505, allocations: 2.621 MB / 0.5467 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.4521, allocations: 466.1 kB / 0.5472 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004342/0.4525, allocations: 188.7 kB / 0.5473 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04753/0.5, allocations: 24.3 MB / 0.5711 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/0.5002, allocations: 42.56 kB / 0.5711 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 3.056e-06/0.5002, allocations: 0 / 0.5711 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003141/0.5033, allocations: 0.7949 MB / 0.5719 GB, free: 15.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.5034, allocations: 102.8 kB / 0.572 GB, free: 15.86 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004276/0.5038, allocations: 316.4 kB / 0.5723 GB, free: 15.54 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.5039, allocations: 29.7 kB / 0.5723 GB, free: 15.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.5041, allocations: 212.5 kB / 0.5725 GB, free: 15.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.398e-05/0.5042, allocations: 91.19 kB / 0.5726 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.5043, allocations: 73.64 kB / 0.5727 GB, free: 15.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5045, allocations: 338.8 kB / 0.573 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.5049, allocations: 139.8 kB / 0.5731 GB, free: 14.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004544/0.5054, allocations: 234.9 kB / 0.5734 GB, free: 14.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007992/0.5062, allocations: 355.1 kB / 0.5737 GB, free: 14 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.5062, allocations: 3.984 kB / 0.5737 GB, free: 14 MB / 462.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001027/0.5072, allocations: 429.2 kB / 0.5741 GB, free: 13.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.5073, allocations: 8.031 kB / 0.5741 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.5073, allocations: 4 kB / 0.5741 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.5073, allocations: 7.938 kB / 0.5741 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.5077, allocations: 83.88 kB / 0.5742 GB, free: 13.47 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.5077, allocations: 7.938 kB / 0.5742 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.508, allocations: 43.77 kB / 0.5743 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.508, allocations: 16 kB / 0.5743 GB, free: 13.41 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.0001903/0.5082, allocations: 169.6 kB / 0.5744 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-05/0.5083, allocations: 31.81 kB / 0.5745 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002544/0.5109, allocations: 1.886 MB / 0.5763 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.147e-05/0.5109, allocations: 31.89 kB / 0.5763 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.5109, allocations: 0 / 0.5763 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.511, allocations: 7.969 kB / 0.5763 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.512, allocations: 1.02 MB / 0.5773 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.512, allocations: 0 / 0.5773 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002987/0.5123, allocations: 71.88 kB / 0.5774 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.5124, allocations: 7.938 kB / 0.5774 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.5124, allocations: 8 kB / 0.5774 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.5124, allocations: 7.938 kB / 0.5774 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5124, allocations: 0 / 0.5774 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.5139, allocations: 1.089 MB / 0.5785 GB, free: 8.984 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.5141, allocations: 168.3 kB / 0.5786 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.525e-05/0.5142, allocations: 23.83 kB / 0.5787 GB, free: 8.777 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.5144, allocations: 23.92 kB / 0.5787 GB, free: 8.754 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/0.5145, allocations: 31.95 kB / 0.5787 GB, free: 8.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.5146, allocations: 15.98 kB / 0.5787 GB, free: 8.707 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003465/0.5149, allocations: 327.1 kB / 0.5791 GB, free: 8.391 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5149, allocations: 0 / 0.5791 GB, free: 8.391 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00292/0.5179, allocations: 1.006 MB / 0.58 GB, free: 7.383 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.005326/0.5232, allocations: 1.182 MB / 0.5812 GB, free: 6.195 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.5245, allocations: 0.583 MB / 0.5818 GB, free: 5.613 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5245, allocations: 0 / 0.5818 GB, free: 5.613 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007381/0.5253, allocations: 0.5087 MB / 0.5823 GB, free: 5.105 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.5265, allocations: 226 kB / 0.5825 GB, free: 4.891 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.5289, allocations: 1.526 MB / 0.584 GB, free: 3.332 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.5295, allocations: 0.9599 MB / 0.5849 GB, free: 2.348 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005046/0.53, allocations: 278.7 kB / 0.5852 GB, free: 2.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.5301, allocations: 39.44 kB / 0.5852 GB, free: 2.031 MB / 462.1 MB Notification: Performance of SimCode: time 4.5e-07/0.5302, allocations: 0 / 0.5852 GB, free: 2.031 MB / 462.1 MB Notification: Performance of Templates: time 0.0563/0.5865, allocations: 39.4 MB / 0.6237 GB, free: 10.59 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)