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.001437/0.001443, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002058/0.002058, allocations: 192.3 kB / 16.25 MB, free: 6.629 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.385/1.385, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.2855/0.2855, allocations: 39.93 MB / 309.4 MB, free: 9.441 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.001314/0.001314, allocations: 67.91 kB / 377.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1108, allocations: 56.89 MB / 434 MB, free: 4.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2008/0.3117, allocations: 28.24 MB / 462.2 MB, free: 35.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.3234, allocations: 13.38 MB / 475.6 MB, free: 30.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003976/0.3239, allocations: 10.56 kB / 475.6 MB, free: 30.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007144/0.3246, allocations: 221.6 kB / 475.8 MB, free: 30.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008057/0.3327, allocations: 3.226 MB / 479.1 MB, free: 28.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005248/0.338, allocations: 2.12 MB / 481.2 MB, free: 27.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008646/0.3389, allocations: 0.8887 MB / 482.1 MB, free: 27.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003291/0.3392, allocations: 241.1 kB / 482.3 MB, free: 27.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005823/0.3398, allocations: 442.9 kB / 482.7 MB, free: 27.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.34, allocations: 278.5 kB / 483 MB, free: 27.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.3401, allocations: 31.59 kB / 483 MB, free: 27.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01008/0.3502, allocations: 7.118 MB / 490.2 MB, free: 25.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.3503, allocations: 108 kB / 490.3 MB, free: 25.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.3506, allocations: 216.7 kB / 490.5 MB, free: 25.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009112/0.3597, allocations: 4.415 MB / 494.9 MB, free: 23.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3597, allocations: 2.062 kB / 494.9 MB, free: 23.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3597, allocations: 0 / 494.9 MB, free: 23.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.3598, allocations: 0 / 494.9 MB, free: 23.77 MB / 382.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.004767/0.3645, allocations: 1.22 MB / 496.1 MB, free: 22.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3646, allocations: 17.52 kB / 496.1 MB, free: 22.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/0.3664, allocations: 218 kB / 496.3 MB, free: 22.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004261/0.3668, allocations: 361.8 kB / 496.7 MB, free: 22.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.3669, allocations: 26.66 kB / 496.7 MB, free: 22.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/0.3669, allocations: 26.62 kB / 496.8 MB, free: 22.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.3684, allocations: 0.5815 MB / 497.3 MB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3684, allocations: 5.438 kB / 497.3 MB, free: 22.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.3685, allocations: 12.5 kB / 497.4 MB, free: 22.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3685, allocations: 7.5 kB / 497.4 MB, free: 22.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.37, allocations: 0.5241 MB / 497.9 MB, free: 22.23 MB / 382.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.002792/0.3728, allocations: 2.634 MB / 0.4888 GB, free: 19.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.3744, allocations: 453.4 kB / 0.4892 GB, free: 19.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004194/0.3748, allocations: 193.5 kB / 0.4894 GB, free: 19.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04527/0.4201, allocations: 24.21 MB / 0.513 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.4202, allocations: 35.94 kB / 0.5131 GB, free: 1.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.074e-06/0.4202, allocations: 3.938 kB / 0.5131 GB, free: 1.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.00264/0.4228, allocations: 0.7857 MB / 0.5139 GB, free: 1.477 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.4229, allocations: 109.5 kB / 0.514 GB, free: 1.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.4233, allocations: 313.8 kB / 0.5143 GB, free: 17.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.4233, allocations: 31.48 kB / 0.5143 GB, free: 17.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.4235, allocations: 202.8 kB / 0.5145 GB, free: 16.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.782e-05/0.4235, allocations: 91.05 kB / 0.5146 GB, free: 16.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.4236, allocations: 68.53 kB / 0.5146 GB, free: 16.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4238, allocations: 345.7 kB / 0.515 GB, free: 16.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.4241, allocations: 136 kB / 0.5151 GB, free: 16.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.4245, allocations: 239.8 kB / 0.5153 GB, free: 16.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006996/0.4252, allocations: 354.6 kB / 0.5157 GB, free: 15.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4253, allocations: 1.656 kB / 0.5157 GB, free: 15.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000892/0.4262, allocations: 421.7 kB / 0.5161 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4262, allocations: 5.5 kB / 0.5161 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4262, allocations: 3.297 kB / 0.5161 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.4262, allocations: 4.125 kB / 0.5161 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.4265, allocations: 89.88 kB / 0.5162 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4266, allocations: 4.125 kB / 0.5162 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000357/0.4269, allocations: 51.09 kB / 0.5162 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.427, allocations: 16.67 kB / 0.5162 GB, free: 15.7 MB / 398.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.0002134/0.4272, allocations: 165 kB / 0.5164 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.691e-05/0.4273, allocations: 36.59 kB / 0.5164 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/0.4296, allocations: 1.901 MB / 0.5183 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.163e-05/0.4296, allocations: 32.61 kB / 0.5183 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4296, allocations: 0 / 0.5183 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4297, allocations: 3.984 kB / 0.5183 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.4308, allocations: 1.012 MB / 0.5193 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.4308, allocations: 3.938 kB / 0.5193 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002987/0.4311, allocations: 78.95 kB / 0.5194 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.4311, allocations: 2.656 kB / 0.5194 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.4311, allocations: 5.812 kB / 0.5194 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.4312, allocations: 11.03 kB / 0.5194 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4312, allocations: 0 / 0.5194 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.4326, allocations: 1.082 MB / 0.5205 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.4328, allocations: 154.4 kB / 0.5206 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.625e-05/0.4329, allocations: 26.06 kB / 0.5206 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.4332, allocations: 43.28 kB / 0.5207 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.4333, allocations: 34.2 kB / 0.5207 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.4333, allocations: 12.14 kB / 0.5207 GB, free: 12.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000375/0.4337, allocations: 325 kB / 0.521 GB, free: 12.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4337, allocations: 0 / 0.521 GB, free: 12.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004618/0.4383, allocations: 0.9941 MB / 0.522 GB, free: 11.76 MB / 398.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.005168/0.4435, allocations: 1.181 MB / 0.5231 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.445, allocations: 0.6103 MB / 0.5237 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.445, allocations: 0 / 0.5237 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.4456, allocations: 0.5093 MB / 0.5242 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.4468, allocations: 221.5 kB / 0.5245 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.4489, allocations: 1.859 MB / 0.5263 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000461/0.4494, allocations: 0.9677 MB / 0.5272 GB, free: 6.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004544/0.4499, allocations: 262.9 kB / 0.5275 GB, free: 6.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.45, allocations: 47.42 kB / 0.5275 GB, free: 6.074 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.45, allocations: 0 / 0.5275 GB, free: 6.074 MB / 398.1 MB Notification: Performance of Templates: time 0.05192/0.5019, allocations: 39.21 MB / 0.5658 GB, free: 14.86 MB / 446.1 MB 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)