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.008498/0.008498, allocations: 104.5 kB / 15.74 MB, free: 6.441 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.001686/0.001686, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.348/1.348, allocations: 205.1 MB / 222.5 MB, free: 4.477 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.3206/0.3206, allocations: 38 MB / 307.9 MB, free: 10.22 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.001409/0.001409, allocations: 68.28 kB / 433 MB, free: 5.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3163, allocations: 56.46 MB / 489.5 MB, free: 19.89 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02914/0.3455, allocations: 28.13 MB / 0.5055 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.3637, allocations: 13.3 MB / 0.5184 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004709/0.3643, allocations: 9.281 kB / 0.5185 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000819/0.3651, allocations: 256.7 kB / 0.5187 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01298/0.3781, allocations: 3.652 MB / 0.5223 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009525/0.3877, allocations: 2.361 MB / 0.5246 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00242/0.3901, allocations: 0.8928 MB / 0.5254 GB, free: 156 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006751/0.3908, allocations: 239.9 kB / 0.5257 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.3922, allocations: 440 kB / 0.5261 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004484/0.3926, allocations: 270.4 kB / 0.5263 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.624e-05/0.3927, allocations: 32.47 kB / 0.5264 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01914/0.4118, allocations: 7.222 MB / 0.5334 GB, free: 10.65 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.4121, allocations: 103.7 kB / 0.5335 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004991/0.4126, allocations: 215 kB / 0.5337 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01741/0.43, allocations: 4.401 MB / 0.538 GB, free: 5.926 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4301, allocations: 0 / 0.538 GB, free: 5.926 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4301, allocations: 0 / 0.538 GB, free: 5.926 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.4301, allocations: 3.938 kB / 0.538 GB, free: 5.922 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.004606/0.4347, allocations: 1.236 MB / 0.5392 GB, free: 4.637 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.737e-05/0.4348, allocations: 11.89 kB / 0.5393 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001858/0.4367, allocations: 212.3 kB / 0.5395 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008442/0.4376, allocations: 379.2 kB / 0.5398 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.224e-05/0.4376, allocations: 25.03 kB / 0.5398 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.948e-05/0.4377, allocations: 36.31 kB / 0.5399 GB, free: 3.945 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.4393, allocations: 0.586 MB / 0.5404 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4394, allocations: 0 / 0.5404 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.4394, allocations: 16 kB / 0.5405 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4394, allocations: 8 kB / 0.5405 GB, free: 3.297 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.4411, allocations: 0.525 MB / 0.541 GB, free: 2.77 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.003574/0.4447, allocations: 2.617 MB / 0.5435 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.4463, allocations: 458.1 kB / 0.544 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004454/0.4468, allocations: 192.7 kB / 0.5442 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05273/0.4995, allocations: 24.29 MB / 0.5679 GB, free: 4.082 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.4996, allocations: 34.56 kB / 0.5679 GB, free: 4.039 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.455e-06/0.4996, allocations: 0 / 0.5679 GB, free: 4.039 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003023/0.5026, allocations: 0.7946 MB / 0.5687 GB, free: 3.238 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.584e-05/0.5027, allocations: 106.8 kB / 0.5688 GB, free: 3.109 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004678/0.5032, allocations: 308.5 kB / 0.5691 GB, free: 2.805 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.5033, allocations: 33.7 kB / 0.5691 GB, free: 2.766 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.5035, allocations: 208.1 kB / 0.5693 GB, free: 2.559 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.5036, allocations: 82.84 kB / 0.5694 GB, free: 2.477 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.5038, allocations: 65.69 kB / 0.5695 GB, free: 2.406 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.504, allocations: 346.8 kB / 0.5698 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/0.5044, allocations: 143.8 kB / 0.5699 GB, free: 1.918 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.5049, allocations: 230.9 kB / 0.5702 GB, free: 1.652 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008601/0.5058, allocations: 355.2 kB / 0.5705 GB, free: 1.273 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.5058, allocations: 3.938 kB / 0.5705 GB, free: 1.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001066/0.5069, allocations: 428.7 kB / 0.5709 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.5069, allocations: 8 kB / 0.5709 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.507, allocations: 0 / 0.5709 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.507, allocations: 11.92 kB / 0.5709 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003323/0.5073, allocations: 79.89 kB / 0.571 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.5073, allocations: 7.938 kB / 0.571 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.5077, allocations: 47.88 kB / 0.5711 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.5077, allocations: 20 kB / 0.5711 GB, free: 0.6719 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.0002094/0.5079, allocations: 157.8 kB / 0.5712 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.397e-05/0.508, allocations: 35.56 kB / 0.5713 GB, free: 484 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002425/0.5105, allocations: 1.897 MB / 0.5731 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.229e-05/0.5105, allocations: 31.89 kB / 0.5731 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5105, allocations: 0 / 0.5731 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5105, allocations: 0 / 0.5731 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.5116, allocations: 1.023 MB / 0.5741 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.5116, allocations: 0 / 0.5741 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.512, allocations: 71.88 kB / 0.5742 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.512, allocations: 0 / 0.5742 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.512, allocations: 11.98 kB / 0.5742 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.512, allocations: 3.938 kB / 0.5742 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.512, allocations: 0 / 0.5742 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.5137, allocations: 1.077 MB / 0.5753 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.5138, allocations: 167.8 kB / 0.5754 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.809e-05/0.5139, allocations: 19.84 kB / 0.5754 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/0.5142, allocations: 31.91 kB / 0.5755 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.5143, allocations: 35.89 kB / 0.5755 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.5143, allocations: 12 kB / 0.5755 GB, free: 11.99 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000379/0.5147, allocations: 323.1 kB / 0.5758 GB, free: 11.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5147, allocations: 0 / 0.5758 GB, free: 11.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002981/0.5177, allocations: 0.9955 MB / 0.5768 GB, free: 10.68 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.004723/0.5225, allocations: 1.164 MB / 0.5779 GB, free: 9.508 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.5238, allocations: 0.5867 MB / 0.5785 GB, free: 8.922 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.5239, allocations: 0 / 0.5785 GB, free: 8.922 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007363/0.5246, allocations: 0.5209 MB / 0.579 GB, free: 8.402 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.5259, allocations: 218.1 kB / 0.5792 GB, free: 8.191 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.5281, allocations: 1.512 MB / 0.5807 GB, free: 6.652 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.5285, allocations: 0.9638 MB / 0.5817 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004507/0.529, allocations: 279.9 kB / 0.5819 GB, free: 5.387 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.5291, allocations: 47.42 kB / 0.582 GB, free: 5.344 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5291, allocations: 0 / 0.582 GB, free: 5.344 MB / 462.1 MB Notification: Performance of Templates: time 0.05477/0.5839, allocations: 39.39 MB / 0.6204 GB, free: 13.92 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)