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.0009285/0.0009285, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001018/0.001019, allocations: 172.7 kB / 15.95 MB, free: 208 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.449/1.449, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.2999/0.2999, allocations: 40 MB / 310.4 MB, free: 10.02 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.0005351/0.0005352, allocations: 15.98 kB / 378.8 MB, free: 12.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1086, allocations: 57.95 MB / 436.8 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2192/0.3279, allocations: 26.14 MB / 462.9 MB, free: 34.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.3396, allocations: 12.39 MB / 475.3 MB, free: 32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.3401, allocations: 14.62 kB / 475.3 MB, free: 31.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005888/0.3407, allocations: 199.8 kB / 475.5 MB, free: 31.88 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.007999/0.3487, allocations: 2.843 MB / 478.4 MB, free: 30.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005281/0.354, allocations: 1.828 MB / 480.2 MB, free: 29.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.355, allocations: 0.9821 MB / 481.2 MB, free: 29.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003185/0.3553, allocations: 195.5 kB / 481.4 MB, free: 29.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005828/0.3559, allocations: 391 kB / 481.8 MB, free: 29.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.3562, allocations: 256.9 kB / 482 MB, free: 28.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.703e-05/0.3563, allocations: 15.59 kB / 482 MB, free: 28.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01102/0.3673, allocations: 6.813 MB / 488.8 MB, free: 27.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.3675, allocations: 79.8 kB / 488.9 MB, free: 27.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.3677, allocations: 102.5 kB / 489 MB, free: 27.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005708/0.3734, allocations: 2.96 MB / 492 MB, free: 26.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3734, allocations: 0 / 492 MB, free: 26.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3734, allocations: 0.5625 kB / 492 MB, free: 26.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.3734, allocations: 0 / 492 MB, free: 26.72 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.003924/0.3774, allocations: 1.166 MB / 493.2 MB, free: 25.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3774, allocations: 9.062 kB / 493.2 MB, free: 25.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.3791, allocations: 218.8 kB / 493.4 MB, free: 25.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.3795, allocations: 359.9 kB / 493.7 MB, free: 25.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.29e-05/0.3796, allocations: 26.06 kB / 493.8 MB, free: 25.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.3796, allocations: 29.56 kB / 493.8 MB, free: 25.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.381, allocations: 0.6023 MB / 494.4 MB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3811, allocations: 3.938 kB / 494.4 MB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.3811, allocations: 11.38 kB / 494.4 MB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3811, allocations: 9.406 kB / 494.4 MB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.3826, allocations: 0.5571 MB / 495 MB, free: 25.21 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.002694/0.3853, allocations: 2.646 MB / 497.6 MB, free: 22.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.3867, allocations: 493.8 kB / 498.1 MB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004038/0.3871, allocations: 204.1 kB / 498.3 MB, free: 22.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04236/0.4295, allocations: 24.42 MB / 0.5105 GB, free: 21.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.4296, allocations: 33.5 kB / 0.5105 GB, free: 21.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.224e-06/0.4296, allocations: 3.938 kB / 0.5105 GB, free: 21.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002802/0.4324, allocations: 0.844 MB / 0.5113 GB, free: 20.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.572e-05/0.4325, allocations: 113.3 kB / 0.5114 GB, free: 20.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.4328, allocations: 307.4 kB / 0.5117 GB, free: 20.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.4329, allocations: 31.67 kB / 0.5118 GB, free: 20.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.433, allocations: 203.4 kB / 0.5119 GB, free: 20.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.978e-05/0.4331, allocations: 85.17 kB / 0.512 GB, free: 20.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.701e-05/0.4331, allocations: 6.062 kB / 0.512 GB, free: 20.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4333, allocations: 349.2 kB / 0.5124 GB, free: 19.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.4336, allocations: 151.8 kB / 0.5125 GB, free: 19.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004117/0.4341, allocations: 252 kB / 0.5128 GB, free: 19.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.4345, allocations: 165 kB / 0.5129 GB, free: 19.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.4345, allocations: 1.156 kB / 0.5129 GB, free: 19.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008719/0.4353, allocations: 453.8 kB / 0.5133 GB, free: 19.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.4354, allocations: 6.031 kB / 0.5134 GB, free: 19.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.4354, allocations: 3.062 kB / 0.5134 GB, free: 19.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.4354, allocations: 4.375 kB / 0.5134 GB, free: 19.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.4357, allocations: 93.41 kB / 0.5134 GB, free: 19.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.4358, allocations: 8.75 kB / 0.5135 GB, free: 19.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.4361, allocations: 62 kB / 0.5135 GB, free: 19.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.4361, allocations: 16.41 kB / 0.5135 GB, free: 19.24 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.0002106/0.4363, allocations: 170 kB / 0.5137 GB, free: 19.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.042e-05/0.4364, allocations: 39.97 kB / 0.5137 GB, free: 19.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.4386, allocations: 1.926 MB / 0.5156 GB, free: 17.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/0.4387, allocations: 32.03 kB / 0.5156 GB, free: 17.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.4387, allocations: 6.094 kB / 0.5156 GB, free: 17.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.4387, allocations: 3.938 kB / 0.5157 GB, free: 17.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/0.4397, allocations: 1.014 MB / 0.5166 GB, free: 17.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.4397, allocations: 1.375 kB / 0.5166 GB, free: 17.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.44, allocations: 84.81 kB / 0.5167 GB, free: 17.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.44, allocations: 5.375 kB / 0.5167 GB, free: 17.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.44, allocations: 10.73 kB / 0.5167 GB, free: 17.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.44, allocations: 1.375 kB / 0.5167 GB, free: 17.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.44, allocations: 0 / 0.5167 GB, free: 17.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.4414, allocations: 1.099 MB / 0.5178 GB, free: 16.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.4416, allocations: 217.1 kB / 0.518 GB, free: 16.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.717e-05/0.4416, allocations: 11.38 kB / 0.518 GB, free: 16.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.4419, allocations: 50.02 kB / 0.5181 GB, free: 16.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.113e-05/0.442, allocations: 39.83 kB / 0.5181 GB, free: 16.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.442, allocations: 8.75 kB / 0.5181 GB, free: 16.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002902/0.4423, allocations: 322.5 kB / 0.5184 GB, free: 16.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4423, allocations: 0 / 0.5184 GB, free: 16.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003735/0.4461, allocations: 0.99 MB / 0.5194 GB, free: 15.88 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.004913/0.451, allocations: 1.168 MB / 0.5205 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.4521, allocations: 0.6197 MB / 0.5211 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4521, allocations: 0 / 0.5211 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005374/0.4526, allocations: 0.532 MB / 0.5217 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.4537, allocations: 208 kB / 0.5219 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.4555, allocations: 1.865 MB / 0.5237 GB, free: 12.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004528/0.456, allocations: 0.9641 MB / 0.5246 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004741/0.4565, allocations: 276.3 kB / 0.5249 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.4566, allocations: 39.42 kB / 0.5249 GB, free: 11.15 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4566, allocations: 4 kB / 0.5249 GB, free: 11.14 MB / 398.1 MB Notification: Performance of Templates: time 0.05367/0.5103, allocations: 39.08 MB / 0.5631 GB, free: 4.059 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: