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.0008145/0.0008145, allocations: 90.59 kB / 15.06 MB, free: 1.094 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.000812/0.0008122, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.2766/0.2766, allocations: 38.04 MB / 308.4 MB, free: 10.37 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.0006112/0.0006114, allocations: 12 kB / 376.4 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1146, allocations: 57.53 MB / 434 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2189/0.3336, allocations: 26.14 MB / 460.1 MB, free: 34.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.3446, allocations: 12.39 MB / 472.5 MB, free: 33.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003299/0.345, allocations: 10.66 kB / 472.5 MB, free: 33.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005521/0.3455, allocations: 203.1 kB / 472.7 MB, free: 33.36 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.007132/0.3527, allocations: 2.845 MB / 475.5 MB, free: 32.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004865/0.3575, allocations: 1.82 MB / 477.4 MB, free: 32.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009734/0.3585, allocations: 0.9819 MB / 478.4 MB, free: 31.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.3588, allocations: 203.6 kB / 478.6 MB, free: 31.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005466/0.3594, allocations: 385.1 kB / 478.9 MB, free: 31.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002441/0.3596, allocations: 259.7 kB / 479.2 MB, free: 31.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.668e-05/0.3597, allocations: 15.59 kB / 479.2 MB, free: 31.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01041/0.3701, allocations: 6.821 MB / 486 MB, free: 30.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.3703, allocations: 75.88 kB / 486.1 MB, free: 29.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.3705, allocations: 104.3 kB / 486.2 MB, free: 29.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005045/0.3755, allocations: 2.961 MB / 489.2 MB, free: 29.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3755, allocations: 0 / 489.2 MB, free: 29.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3755, allocations: 2.969 kB / 489.2 MB, free: 29.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.3756, allocations: 0 / 489.2 MB, free: 29.52 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.003047/0.3786, allocations: 1.163 MB / 490.3 MB, free: 28.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3787, allocations: 9.656 kB / 490.3 MB, free: 28.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001592/0.3803, allocations: 222.5 kB / 490.5 MB, free: 28.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.3807, allocations: 350.4 kB / 490.9 MB, free: 28.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.3807, allocations: 28.09 kB / 490.9 MB, free: 28.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.3808, allocations: 27.59 kB / 490.9 MB, free: 28.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.3822, allocations: 0.5981 MB / 491.5 MB, free: 28.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3822, allocations: 3.938 kB / 491.5 MB, free: 28.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.3822, allocations: 14.12 kB / 491.6 MB, free: 28.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.3822, allocations: 10.17 kB / 491.6 MB, free: 28.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3836, allocations: 0.5594 MB / 492.1 MB, free: 28.03 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.002406/0.386, allocations: 2.645 MB / 494.8 MB, free: 25.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.3874, allocations: 496.7 kB / 495.3 MB, free: 25.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003699/0.3878, allocations: 203.4 kB / 495.5 MB, free: 25.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03995/0.4278, allocations: 24.43 MB / 0.5077 GB, free: 24.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.4278, allocations: 36.5 kB / 0.5077 GB, free: 24.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.255e-06/0.4278, allocations: 0 / 0.5077 GB, free: 24.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002523/0.4304, allocations: 0.8398 MB / 0.5086 GB, free: 24.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.4304, allocations: 110.7 kB / 0.5087 GB, free: 24.1 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003138/0.4307, allocations: 311.2 kB / 0.509 GB, free: 23.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.4308, allocations: 35.67 kB / 0.509 GB, free: 23.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4309, allocations: 202.5 kB / 0.5092 GB, free: 23.67 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.83e-05/0.431, allocations: 82.02 kB / 0.5093 GB, free: 23.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.621e-05/0.431, allocations: 5.25 kB / 0.5093 GB, free: 23.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4311, allocations: 346.4 kB / 0.5096 GB, free: 23.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.4314, allocations: 155.4 kB / 0.5097 GB, free: 23.19 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/0.4318, allocations: 243.9 kB / 0.51 GB, free: 23.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.4322, allocations: 172.4 kB / 0.5101 GB, free: 22.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4322, allocations: 1.062 kB / 0.5101 GB, free: 22.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008454/0.433, allocations: 454.7 kB / 0.5106 GB, free: 22.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.4331, allocations: 6.375 kB / 0.5106 GB, free: 22.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4331, allocations: 1.219 kB / 0.5106 GB, free: 22.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.4331, allocations: 5.531 kB / 0.5106 GB, free: 22.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.4334, allocations: 91 kB / 0.5107 GB, free: 22.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.4334, allocations: 8.062 kB / 0.5107 GB, free: 22.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.4337, allocations: 65.69 kB / 0.5107 GB, free: 22.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.4338, allocations: 15.56 kB / 0.5108 GB, free: 22.64 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 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.434, allocations: 166.3 kB / 0.5109 GB, free: 22.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.434, allocations: 37.3 kB / 0.511 GB, free: 22.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002106/0.4361, allocations: 1.933 MB / 0.5128 GB, free: 21.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/0.4362, allocations: 35.8 kB / 0.5129 GB, free: 21.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4362, allocations: 1.656 kB / 0.5129 GB, free: 21.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4362, allocations: 0 / 0.5129 GB, free: 21.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008246/0.437, allocations: 1.018 MB / 0.5139 GB, free: 20.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.437, allocations: 3.938 kB / 0.5139 GB, free: 20.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.4373, allocations: 77.94 kB / 0.514 GB, free: 20.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.4373, allocations: 5.109 kB / 0.514 GB, free: 20.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.4374, allocations: 10.48 kB / 0.514 GB, free: 20.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.4374, allocations: 5.375 kB / 0.514 GB, free: 20.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4374, allocations: 1.531 kB / 0.514 GB, free: 20.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.4386, allocations: 1.088 MB / 0.515 GB, free: 19.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.4387, allocations: 228.7 kB / 0.5153 GB, free: 19.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/0.4388, allocations: 9.297 kB / 0.5153 GB, free: 19.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.4391, allocations: 52.11 kB / 0.5153 GB, free: 19.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.685e-05/0.4392, allocations: 31.33 kB / 0.5153 GB, free: 19.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.4392, allocations: 12 kB / 0.5154 GB, free: 19.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.4395, allocations: 324.6 kB / 0.5157 GB, free: 19.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4395, allocations: 0 / 0.5157 GB, free: 19.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003223/0.4427, allocations: 0.9892 MB / 0.5166 GB, free: 19.29 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003955/0.4467, allocations: 1.163 MB / 0.5178 GB, free: 18.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.4478, allocations: 0.6209 MB / 0.5184 GB, free: 18.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.4478, allocations: 0 / 0.5184 GB, free: 18.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005486/0.4483, allocations: 0.5314 MB / 0.5189 GB, free: 18.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.4494, allocations: 206.2 kB / 0.5191 GB, free: 18.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.4512, allocations: 1.859 MB / 0.5209 GB, free: 16.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.4516, allocations: 0.9691 MB / 0.5219 GB, free: 16.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003958/0.452, allocations: 277.6 kB / 0.5221 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.661e-05/0.4521, allocations: 39.42 kB / 0.5222 GB, free: 15.75 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4521, allocations: 0 / 0.5222 GB, free: 15.75 MB / 398.1 MB Notification: Performance of Templates: time 0.05067/0.5028, allocations: 39.09 MB / 0.5603 GB, free: 8.656 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: