Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.65/1.65, allocations: 288.2 MB / 303.2 MB, free: 8.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001057, allocations: 177.5 kB / 371.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 0.6305 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 105.9 kB / 0.7439 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003854, allocations: 15.56 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2227, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.01905/0.2418, allocations: 25.42 MB / 1.004 GB, free: 2.133 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01478/0.2566, allocations: 10.33 MB / 1.014 GB, free: 7.797 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.258, allocations: 35.62 kB / 1.014 GB, free: 7.762 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.2597, allocations: 0.6184 MB / 1.015 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.004457/0.2642, allocations: 1.394 MB / 1.016 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.008118/0.2723, allocations: 2.884 MB / 1.019 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.003843/0.2762, allocations: 2.093 MB / 1.021 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.2781, allocations: 1.09 MB / 1.022 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002617/0.2807, allocations: 1.274 MB / 1.024 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00216/0.2829, allocations: 1.286 MB / 1.025 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0002858/0.2832, allocations: 64 kB / 1.025 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00221/0.2854, allocations: 0.901 MB / 1.026 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.2858, allocations: 330.8 kB / 1.026 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0005102/0.2863, allocations: 241.1 kB / 1.026 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.001951/0.2883, allocations: 1.535 MB / 1.028 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2883, allocations: 0 / 1.028 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.715e-06/0.2883, allocations: 4 kB / 1.028 GB, free: 10.05 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.803e-05/0.2884, allocations: 0 / 1.028 GB, free: 10.05 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002409/0.2908, allocations: 1.332 MB / 1.029 GB, free: 8.672 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.2908, allocations: 8.031 kB / 1.029 GB, free: 8.664 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.291, allocations: 98.52 kB / 1.029 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003202/0.2913, allocations: 146.5 kB / 1.029 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.2931, allocations: 0.8602 MB / 1.03 GB, free: 7.512 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.721e-05/0.2932, allocations: 81.31 kB / 1.03 GB, free: 7.434 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.2934, allocations: 116 kB / 1.03 GB, free: 7.32 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.2945, allocations: 0.6395 MB / 1.031 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.2945, allocations: 0 / 1.031 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.2946, allocations: 31.98 kB / 1.031 GB, free: 6.621 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.2946, allocations: 16 kB / 1.031 GB, free: 6.605 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008949/0.2955, allocations: 472.8 kB / 1.031 GB, free: 6.145 MB / 0.6511 GB 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.00444/0.2999, allocations: 2.859 MB / 1.034 GB, free: 3.133 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.3006, allocations: 317.1 kB / 1.035 GB, free: 2.816 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003154/0.3009, allocations: 344.7 kB / 1.035 GB, free: 2.406 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3009, allocations: 38.84 kB / 1.035 GB, free: 2.359 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 1.984e-06/0.3009, allocations: 0 / 1.035 GB, free: 2.359 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.001206/0.3022, allocations: 0.5403 MB / 1.035 GB, free: 1.812 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.3022, allocations: 55.41 kB / 1.036 GB, free: 1.746 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009858/0.3032, allocations: 0.8752 MB / 1.036 GB, free: 0.8516 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.3033, allocations: 57.7 kB / 1.036 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004722/0.3038, allocations: 0.5415 MB / 1.037 GB, free: 240 kB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.178e-05/0.3039, allocations: 118.3 kB / 1.037 GB, free: 120 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.304, allocations: 19.94 kB / 1.037 GB, free: 100 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3041, allocations: 325.9 kB / 1.037 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.3045, allocations: 181.2 kB / 1.038 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.3058, allocations: 1.139 MB / 1.039 GB, free: 14.09 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005039/0.3063, allocations: 302.8 kB / 1.039 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3063, allocations: 0 / 1.039 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00119/0.3075, allocations: 0.6346 MB / 1.04 GB, free: 13.16 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003325/0.3079, allocations: 0.8136 MB / 1.04 GB, free: 12.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3079, allocations: 4 kB / 1.04 GB, free: 12.28 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3079, allocations: 8 kB / 1.04 GB, free: 12.27 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.3093, allocations: 227.7 kB / 1.041 GB, free: 12.05 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.311, allocations: 2.965 MB / 1.044 GB, free: 8.965 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003379/0.3144, allocations: 0.7417 MB / 1.044 GB, free: 8.223 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.3145, allocations: 31.98 kB / 1.044 GB, free: 8.191 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.3146, allocations: 8 kB / 1.044 GB, free: 8.184 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000959/0.3155, allocations: 0.4933 MB / 1.045 GB, free: 7.688 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3155, allocations: 8.188 kB / 1.045 GB, free: 7.68 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.224e-06/0.3155, allocations: 4 kB / 1.045 GB, free: 7.676 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000674/0.3162, allocations: 159.8 kB / 1.045 GB, free: 7.52 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3162, allocations: 8 kB / 1.045 GB, free: 7.512 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/0.3195, allocations: 0.7339 MB / 1.046 GB, free: 6.777 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.3196, allocations: 31.92 kB / 1.046 GB, free: 6.746 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005959/0.3202, allocations: 332.8 kB / 1.046 GB, free: 6.414 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3204, allocations: 98.72 kB / 1.046 GB, free: 6.316 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.3215, allocations: 0.5239 MB / 1.047 GB, free: 5.781 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3215, allocations: 4 kB / 1.047 GB, free: 5.777 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.3215, allocations: 4 kB / 1.047 GB, free: 5.773 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.3215, allocations: 3.984 kB / 1.047 GB, free: 5.77 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.3235, allocations: 1.256 MB / 1.048 GB, free: 4.445 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3235, allocations: 0 / 1.048 GB, free: 4.445 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005393/0.3241, allocations: 115.8 kB / 1.048 GB, free: 4.332 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3241, allocations: 0 / 1.048 GB, free: 4.332 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.3241, allocations: 24.11 kB / 1.048 GB, free: 4.309 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001447/0.3256, allocations: 2.942 MB / 1.051 GB, free: 1.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3256, allocations: 3.938 kB / 1.051 GB, free: 1.246 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008828/0.3265, allocations: 0.6265 MB / 1.051 GB, free: 0.5703 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003369/0.3269, allocations: 219.7 kB / 1.052 GB, free: 344 kB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.327, allocations: 19.98 kB / 1.052 GB, free: 324 kB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.3275, allocations: 67.72 kB / 1.052 GB, free: 256 kB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.3276, allocations: 27.97 kB / 1.052 GB, free: 228 kB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.3276, allocations: 15.98 kB / 1.052 GB, free: 212 kB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0007482/0.3284, allocations: 0.5845 MB / 1.052 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3284, allocations: 3.938 kB / 1.052 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00146/0.3298, allocations: 0.5384 MB / 1.053 GB, free: 15.07 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001834/0.3317, allocations: 1.651 MB / 1.055 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002594/0.3343, allocations: 0.8467 MB / 1.055 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3343, allocations: 0 / 1.055 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005913/0.3349, allocations: 236.5 kB / 1.056 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/0.3374, allocations: 491.9 kB / 1.056 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.3417, allocations: 3.521 MB / 1.059 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007714/0.3425, allocations: 1.038 MB / 1.06 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001171/0.3437, allocations: 219 kB / 1.061 GB, free: 6.906 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004979/0.3442, allocations: 367.3 kB / 1.061 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of SimCode: time 7.71e-07/0.3442, allocations: 0 / 1.061 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.496/0.8402, allocations: 31.86 MB / 1.092 GB, free: 80.29 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003009/0.8406, allocations: 262.7 kB / 1.092 GB, free: 79.93 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.082/3.923, allocations: 2.734 kB / 1.092 GB, free: 79.93 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)