Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.388/1.388, allocations: 252 MB / 267 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 188.9 kB / 326.6 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.778/1.778, allocations: 205.4 MB / 0.5777 GB, free: 20.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008974/0.0008973, allocations: 89.7 kB / 0.6822 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003823, allocations: 9 kB / 0.7965 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2465, allocations: 106.3 MB / 0.9003 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.01818/0.2648, allocations: 24.42 MB / 0.9242 GB, free: 39.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01319/0.278, allocations: 9.865 MB / 0.9338 GB, free: 30 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.28, allocations: 31.69 kB / 0.9338 GB, free: 29.97 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.2812, allocations: 270.2 kB / 0.9341 GB, free: 29.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003563/0.2848, allocations: 0.9235 MB / 0.935 GB, free: 28.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002622/0.2874, allocations: 0.8723 MB / 0.9358 GB, free: 27.92 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002515/0.29, allocations: 2.707 MB / 0.9385 GB, free: 25.2 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008944/0.2909, allocations: 0.7679 MB / 0.9392 GB, free: 24.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.2924, allocations: 1.02 MB / 0.9402 GB, free: 23.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.2937, allocations: 0.9772 MB / 0.9412 GB, free: 22.41 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.2938, allocations: 44 kB / 0.9412 GB, free: 22.36 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.2954, allocations: 0.8304 MB / 0.942 GB, free: 21.53 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.2956, allocations: 203.2 kB / 0.9422 GB, free: 21.33 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.2959, allocations: 205.2 kB / 0.9424 GB, free: 21.12 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.2969, allocations: 1.118 MB / 0.9435 GB, free: 20 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2969, allocations: 0 / 0.9435 GB, free: 20 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2969, allocations: 0 / 0.9435 GB, free: 20 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.297, allocations: 0 / 0.9435 GB, free: 20 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001696/0.2987, allocations: 1.164 MB / 0.9446 GB, free: 18.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2987, allocations: 11.97 kB / 0.9447 GB, free: 18.78 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.633e-05/0.2988, allocations: 90.52 kB / 0.9447 GB, free: 18.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.299, allocations: 118.7 kB / 0.9449 GB, free: 18.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000827/0.2999, allocations: 0.624 MB / 0.9455 GB, free: 17.89 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.2999, allocations: 57 kB / 0.9455 GB, free: 17.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.3001, allocations: 84 kB / 0.9456 GB, free: 17.76 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008265/0.3009, allocations: 0.5647 MB / 0.9461 GB, free: 17.16 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3009, allocations: 0 / 0.9461 GB, free: 17.16 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.962e-05/0.301, allocations: 20 kB / 0.9462 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.301, allocations: 12 kB / 0.9462 GB, free: 17.13 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006834/0.3017, allocations: 411.7 kB / 0.9466 GB, free: 16.73 MB / 0.6042 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.003118/0.3048, allocations: 2.54 MB / 0.9491 GB, free: 14.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/0.3053, allocations: 266.7 kB / 0.9493 GB, free: 13.78 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.3055, allocations: 140.8 kB / 0.9494 GB, free: 13.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.3058, allocations: 344.4 kB / 0.9498 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.3058, allocations: 34.56 kB / 0.9498 GB, free: 13.19 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=29): time 2.094e-06/0.3058, allocations: 3.938 kB / 0.9498 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=29): time 0.000963/0.3068, allocations: 481.9 kB / 0.9503 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.3068, allocations: 59.41 kB / 0.9503 GB, free: 12.64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006372/0.3075, allocations: 0.7514 MB / 0.9511 GB, free: 11.88 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.366e-05/0.3076, allocations: 45.7 kB / 0.9511 GB, free: 11.82 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.3079, allocations: 433.2 kB / 0.9515 GB, free: 11.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.3079, allocations: 98.56 kB / 0.9516 GB, free: 11.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.308, allocations: 12 kB / 0.9516 GB, free: 11.29 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.308, allocations: 322 kB / 0.9519 GB, free: 10.97 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/0.3084, allocations: 161 kB / 0.9521 GB, free: 10.81 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007467/0.3091, allocations: 0.7789 MB / 0.9528 GB, free: 9.828 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003629/0.3095, allocations: 237.1 kB / 0.9531 GB, free: 9.598 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3095, allocations: 0 / 0.9531 GB, free: 9.598 MB / 0.6042 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000886/0.3104, allocations: 0.5496 MB / 0.9536 GB, free: 9.039 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.405e-05/0.3105, allocations: 150.9 kB / 0.9537 GB, free: 8.863 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3105, allocations: 4.219 kB / 0.9537 GB, free: 8.859 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.3105, allocations: 7.938 kB / 0.9538 GB, free: 8.852 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.3116, allocations: 203.7 kB / 0.954 GB, free: 8.652 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008819/0.3125, allocations: 2.368 MB / 0.9563 GB, free: 6.191 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/0.3151, allocations: 0.6828 MB / 0.9569 GB, free: 5.504 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/0.3152, allocations: 27.98 kB / 0.957 GB, free: 5.477 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.787e-06/0.3152, allocations: 4 kB / 0.957 GB, free: 5.473 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007334/0.316, allocations: 442.1 kB / 0.9574 GB, free: 5.039 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.316, allocations: 4 kB / 0.9574 GB, free: 5.035 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.643e-06/0.316, allocations: 4 kB / 0.9574 GB, free: 5.031 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005378/0.3165, allocations: 144 kB / 0.9575 GB, free: 4.891 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.3165, allocations: 8 kB / 0.9575 GB, free: 4.883 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.319, allocations: 0.6827 MB / 0.9582 GB, free: 4.199 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.658e-05/0.319, allocations: 23.98 kB / 0.9582 GB, free: 4.176 MB / 0.6042 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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003871/0.3194, allocations: 293.5 kB / 0.9585 GB, free: 3.879 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3195, allocations: 82.97 kB / 0.9586 GB, free: 3.797 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000912/0.3204, allocations: 481.6 kB / 0.959 GB, free: 3.32 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.3205, allocations: 4 kB / 0.959 GB, free: 3.316 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3205, allocations: 0 / 0.959 GB, free: 3.316 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.3205, allocations: 3.953 kB / 0.959 GB, free: 3.312 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.322, allocations: 1.139 MB / 0.9602 GB, free: 2.105 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.322, allocations: 4 kB / 0.9602 GB, free: 2.102 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004373/0.3225, allocations: 107.8 kB / 0.9603 GB, free: 1.996 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3225, allocations: 0 / 0.9603 GB, free: 1.996 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.3225, allocations: 8 kB / 0.9603 GB, free: 1.988 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008901/0.3234, allocations: 2.36 MB / 0.9626 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3234, allocations: 8.016 kB / 0.9626 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000888/0.3243, allocations: 0.5362 MB / 0.9631 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.3247, allocations: 195.9 kB / 0.9633 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.489e-05/0.3247, allocations: 15.98 kB / 0.9633 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.3252, allocations: 52.08 kB / 0.9634 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.89e-05/0.3253, allocations: 23.95 kB / 0.9634 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.3253, allocations: 23.97 kB / 0.9634 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006816/0.326, allocations: 0.5068 MB / 0.9639 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.326, allocations: 0 / 0.9639 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00152/0.3275, allocations: 463.1 kB / 0.9643 GB, free: 13.68 MB / 0.6198 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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001848/0.3294, allocations: 1.288 MB / 0.9656 GB, free: 12.36 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002192/0.3316, allocations: 0.7127 MB / 0.9663 GB, free: 11.65 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3316, allocations: 4 kB / 0.9663 GB, free: 11.65 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005013/0.3321, allocations: 208.2 kB / 0.9665 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.3343, allocations: 429.8 kB / 0.9669 GB, free: 11.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006603/0.3409, allocations: 4.254 MB / 0.9711 GB, free: 6.621 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.3415, allocations: 0.9658 MB / 0.972 GB, free: 5.629 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0008596/0.3424, allocations: 174 kB / 0.9722 GB, free: 5.457 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.3427, allocations: 315.3 kB / 0.9725 GB, free: 5.148 MB / 0.6198 GB Notification: Performance of SimCode: time 7.51e-07/0.3427, allocations: 0 / 0.9725 GB, free: 5.148 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05199/0.3947, allocations: 26.92 MB / 0.9988 GB, free: 10.63 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.395, allocations: 268.3 kB / 0.999 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.989/3.384, allocations: 0 / 0.999 GB, free: 10.27 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)