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.005802/0.005802, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001457/0.001457, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.388/1.388, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1782/0.1782, allocations: 38.01 MB / 307.9 MB, free: 5.977 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.001403/0.001403, allocations: 69.94 kB / 433 MB, free: 14.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1094, allocations: 56.47 MB / 489.5 MB, free: 5.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02784/0.1373, allocations: 28.14 MB / 0.5055 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2889/0.4263, allocations: 13.28 MB / 0.5184 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003494/0.4267, allocations: 10.12 kB / 0.5184 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007453/0.4275, allocations: 253.5 kB / 0.5187 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.438, allocations: 3.657 MB / 0.5223 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006535/0.4446, allocations: 2.369 MB / 0.5246 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.4459, allocations: 0.8931 MB / 0.5254 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004576/0.4464, allocations: 249.1 kB / 0.5257 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007568/0.4471, allocations: 441.9 kB / 0.5261 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003614/0.4475, allocations: 268.5 kB / 0.5264 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.664e-05/0.4476, allocations: 32.19 kB / 0.5264 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01689/0.4645, allocations: 7.225 MB / 0.5334 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002245/0.4647, allocations: 103.6 kB / 0.5335 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004494/0.4652, allocations: 217.3 kB / 0.5337 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.4777, allocations: 4.409 MB / 0.538 GB, free: 1.598 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4778, allocations: 1.531 kB / 0.5381 GB, free: 1.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4778, allocations: 0 / 0.5381 GB, free: 1.598 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.4778, allocations: 0 / 0.5381 GB, free: 1.598 MB / 398.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.004254/0.4821, allocations: 1.233 MB / 0.5393 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4821, allocations: 14.42 kB / 0.5393 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001648/0.4838, allocations: 208.8 kB / 0.5395 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.4843, allocations: 375.3 kB / 0.5398 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.4844, allocations: 27.44 kB / 0.5399 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.4844, allocations: 26.25 kB / 0.5399 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.4858, allocations: 0.5821 MB / 0.5404 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.4858, allocations: 3.094 kB / 0.5404 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.035e-05/0.4859, allocations: 12.44 kB / 0.5405 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4859, allocations: 7.812 kB / 0.5405 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.4874, allocations: 0.5338 MB / 0.541 GB, free: 15.66 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.002942/0.4904, allocations: 2.613 MB / 0.5435 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.4919, allocations: 463.8 kB / 0.544 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004279/0.4924, allocations: 190.2 kB / 0.5442 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04665/0.539, allocations: 24.3 MB / 0.5679 GB, free: 5.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/0.5391, allocations: 30.56 kB / 0.5679 GB, free: 5.781 MB / 430.1 MB Notification: Performance of pre-optimization done (n=25): time 3.396e-06/0.5391, allocations: 0 / 0.5679 GB, free: 5.781 MB / 430.1 MB Notification: Performance of matching and sorting (n=25): time 0.003/0.5421, allocations: 0.7971 MB / 0.5687 GB, free: 4.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.867e-05/0.5422, allocations: 114.8 kB / 0.5688 GB, free: 4.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.5427, allocations: 312.4 kB / 0.5691 GB, free: 4.531 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.5427, allocations: 29.7 kB / 0.5691 GB, free: 4.496 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.5429, allocations: 202.2 kB / 0.5693 GB, free: 4.297 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.096e-05/0.543, allocations: 90.36 kB / 0.5694 GB, free: 4.215 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.5431, allocations: 71.19 kB / 0.5695 GB, free: 4.141 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.5432, allocations: 338.8 kB / 0.5698 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003953/0.5436, allocations: 147.9 kB / 0.5699 GB, free: 3.656 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.5441, allocations: 231.7 kB / 0.5702 GB, free: 3.395 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000751/0.5448, allocations: 351.5 kB / 0.5705 GB, free: 3.027 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.5449, allocations: 0 / 0.5705 GB, free: 3.027 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009904/0.5458, allocations: 430.5 kB / 0.5709 GB, free: 2.613 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.5459, allocations: 8 kB / 0.5709 GB, free: 2.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.5459, allocations: 0 / 0.5709 GB, free: 2.605 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.5459, allocations: 4 kB / 0.5709 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.5463, allocations: 91.81 kB / 0.571 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.5463, allocations: 6.109 kB / 0.571 GB, free: 2.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.5466, allocations: 52.47 kB / 0.5711 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.5466, allocations: 16 kB / 0.5711 GB, free: 2.441 MB / 430.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.0001916/0.5468, allocations: 165.6 kB / 0.5712 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.182e-05/0.5469, allocations: 34.39 kB / 0.5713 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.5493, allocations: 1.888 MB / 0.5731 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.717e-05/0.5494, allocations: 31.89 kB / 0.5732 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.5494, allocations: 7.984 kB / 0.5732 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.5494, allocations: 0 / 0.5732 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.5504, allocations: 1.014 MB / 0.5741 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.5505, allocations: 0 / 0.5741 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002963/0.5508, allocations: 71.88 kB / 0.5742 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.5508, allocations: 0 / 0.5742 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.5508, allocations: 8 kB / 0.5742 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.5508, allocations: 6.438 kB / 0.5742 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5508, allocations: 4 kB / 0.5742 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.5525, allocations: 1.073 MB / 0.5753 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.5528, allocations: 167.8 kB / 0.5754 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.507e-05/0.5529, allocations: 27.78 kB / 0.5755 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.5532, allocations: 23.92 kB / 0.5755 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.5533, allocations: 31.95 kB / 0.5755 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.5534, allocations: 19.92 kB / 0.5755 GB, free: 13.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004104/0.5538, allocations: 323.1 kB / 0.5758 GB, free: 13.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5538, allocations: 0 / 0.5758 GB, free: 13.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004863/0.5587, allocations: 0.9916 MB / 0.5768 GB, free: 12.48 MB / 446.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.006437/0.5651, allocations: 1.172 MB / 0.578 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.5664, allocations: 0.5943 MB / 0.5785 GB, free: 10.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5664, allocations: 0.625 kB / 0.5785 GB, free: 10.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006819/0.5671, allocations: 0.5087 MB / 0.579 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.5683, allocations: 223.7 kB / 0.5793 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.5706, allocations: 1.5 MB / 0.5807 GB, free: 8.559 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004848/0.5711, allocations: 0.9677 MB / 0.5817 GB, free: 7.566 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004476/0.5716, allocations: 274.8 kB / 0.5819 GB, free: 7.301 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.5717, allocations: 43.44 kB / 0.582 GB, free: 7.258 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5717, allocations: 0 / 0.582 GB, free: 7.258 MB / 446.1 MB Notification: Performance of Templates: time 0.06605/0.6378, allocations: 39.39 MB / 0.6204 GB, free: 15.88 MB / 494.1 MB 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)