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.0009373/0.0009376, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.006588/0.006588, allocations: 169.4 kB / 16.26 MB, free: 6.648 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.427/1.427, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.2911/0.2911, allocations: 40.01 MB / 310.7 MB, free: 9.609 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.0005102/0.0005102, allocations: 16 kB / 379.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.09937, allocations: 57.97 MB / 437.4 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2104/0.3099, allocations: 28.28 MB / 465.7 MB, free: 34.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01278/0.3227, allocations: 14.03 MB / 479.7 MB, free: 28.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003839/0.3231, allocations: 14.06 kB / 479.7 MB, free: 28.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000647/0.3238, allocations: 213.1 kB / 480 MB, free: 28.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009722/0.3335, allocations: 2.924 MB / 482.9 MB, free: 27.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006154/0.3397, allocations: 1.967 MB / 484.8 MB, free: 26.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.3412, allocations: 1.138 MB / 486 MB, free: 26.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004259/0.3417, allocations: 206 kB / 486.2 MB, free: 26.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008567/0.3425, allocations: 391.4 kB / 486.6 MB, free: 26.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.3429, allocations: 270.3 kB / 486.8 MB, free: 26.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.343, allocations: 13.09 kB / 486.8 MB, free: 26.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01344/0.3564, allocations: 7.115 MB / 494 MB, free: 24.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.3567, allocations: 81.41 kB / 494 MB, free: 24.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003682/0.3571, allocations: 221.4 kB / 494.3 MB, free: 24.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.3705, allocations: 4.383 MB / 498.6 MB, free: 22.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3705, allocations: 0 / 498.6 MB, free: 22.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3705, allocations: 4 kB / 498.6 MB, free: 22.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3705, allocations: 0 / 498.6 MB, free: 22.95 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.004484/0.375, allocations: 1.153 MB / 499.8 MB, free: 22.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3751, allocations: 8.562 kB / 499.8 MB, free: 22.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/0.3769, allocations: 217.6 kB / 0.4883 GB, free: 22.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000545/0.3775, allocations: 370.3 kB / 0.4887 GB, free: 21.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.3776, allocations: 30.31 kB / 0.4887 GB, free: 21.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.013e-05/0.3776, allocations: 26.81 kB / 0.4887 GB, free: 21.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.3793, allocations: 0.6097 MB / 0.4893 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3793, allocations: 0 / 0.4893 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.3793, allocations: 12 kB / 0.4893 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3793, allocations: 8.562 kB / 0.4893 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.381, allocations: 0.5622 MB / 0.4899 GB, free: 21.43 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.002871/0.3839, allocations: 2.649 MB / 0.4925 GB, free: 19.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.3855, allocations: 496.5 kB / 0.4929 GB, free: 19.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/0.3859, allocations: 205.3 kB / 0.4931 GB, free: 19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04635/0.4323, allocations: 24.42 MB / 0.517 GB, free: 16.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.4324, allocations: 36.81 kB / 0.517 GB, free: 16.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.854e-06/0.4324, allocations: 1 kB / 0.517 GB, free: 16.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002785/0.4352, allocations: 0.8419 MB / 0.5178 GB, free: 16.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/0.4353, allocations: 113.5 kB / 0.5179 GB, free: 15.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/0.4356, allocations: 310.5 kB / 0.5182 GB, free: 15.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.4356, allocations: 35.02 kB / 0.5183 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.4358, allocations: 211.4 kB / 0.5185 GB, free: 15.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/0.4358, allocations: 81.84 kB / 0.5185 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.4359, allocations: 39.27 kB / 0.5186 GB, free: 15.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.436, allocations: 341.7 kB / 0.5189 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.4364, allocations: 153.1 kB / 0.5191 GB, free: 15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.4368, allocations: 248.7 kB / 0.5193 GB, free: 14.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007575/0.4376, allocations: 387.6 kB / 0.5197 GB, free: 14.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4376, allocations: 0 / 0.5197 GB, free: 14.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009425/0.4385, allocations: 452.6 kB / 0.5201 GB, free: 14.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.4386, allocations: 6.594 kB / 0.5201 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.4386, allocations: 6.406 kB / 0.5201 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4386, allocations: 6.953 kB / 0.5201 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.4389, allocations: 94.11 kB / 0.5202 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.4389, allocations: 7.312 kB / 0.5202 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.4393, allocations: 74.02 kB / 0.5203 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.4393, allocations: 9.75 kB / 0.5203 GB, free: 14.28 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.0001872/0.4395, allocations: 158.8 kB / 0.5204 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.4396, allocations: 32.81 kB / 0.5205 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.4418, allocations: 1.927 MB / 0.5224 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.093e-05/0.4419, allocations: 37.97 kB / 0.5224 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4419, allocations: 3.938 kB / 0.5224 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.4419, allocations: 3.984 kB / 0.5224 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009851/0.4429, allocations: 1.021 MB / 0.5234 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4429, allocations: 0 / 0.5234 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.4432, allocations: 76.19 kB / 0.5235 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.4432, allocations: 1.562 kB / 0.5235 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.4433, allocations: 9.688 kB / 0.5235 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.4433, allocations: 5.812 kB / 0.5235 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4433, allocations: 0 / 0.5235 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.4447, allocations: 1.115 MB / 0.5246 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.4449, allocations: 223.9 kB / 0.5248 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.394e-05/0.4449, allocations: 6.25 kB / 0.5248 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.4452, allocations: 49.31 kB / 0.5248 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.731e-05/0.4453, allocations: 36.64 kB / 0.5249 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.4454, allocations: 17.52 kB / 0.5249 GB, free: 11.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.4457, allocations: 325.3 kB / 0.5252 GB, free: 11.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4457, allocations: 4 kB / 0.5252 GB, free: 11.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003821/0.4495, allocations: 0.9877 MB / 0.5262 GB, free: 10.05 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.005258/0.4548, allocations: 1.177 MB / 0.5273 GB, free: 8.867 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.4561, allocations: 0.6121 MB / 0.5279 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4561, allocations: 4 kB / 0.5279 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006751/0.4568, allocations: 0.5282 MB / 0.5284 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.458, allocations: 201.7 kB / 0.5286 GB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.4602, allocations: 1.879 MB / 0.5305 GB, free: 5.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.4607, allocations: 0.9638 MB / 0.5314 GB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004608/0.4611, allocations: 283 kB / 0.5317 GB, free: 4.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.4613, allocations: 35.44 kB / 0.5317 GB, free: 4.332 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4613, allocations: 0 / 0.5317 GB, free: 4.332 MB / 398.1 MB Notification: Performance of Templates: time 0.05208/0.5133, allocations: 38.74 MB / 0.5695 GB, free: 13.58 MB / 446.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: