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.463/1.463, allocations: 251.9 MB / 266.9 MB, free: 11.05 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.001267/0.001266, allocations: 190 kB / 326.5 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.83/1.83, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.001021/0.001021, allocations: 94.3 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003399, allocations: 9.594 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2305, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.01722/0.2478, allocations: 22.38 MB / 0.922 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01166/0.2595, allocations: 9.317 MB / 0.9311 GB, free: 32.07 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.2607, allocations: 31.69 kB / 0.9311 GB, free: 32.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.262, allocations: 0.5328 MB / 0.9317 GB, free: 31.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.2649, allocations: 1.199 MB / 0.9328 GB, free: 30.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.006588/0.2715, allocations: 2.595 MB / 0.9354 GB, free: 27.75 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002424/0.2739, allocations: 1.568 MB / 0.9369 GB, free: 26.17 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.275, allocations: 0.7719 MB / 0.9376 GB, free: 25.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.2764, allocations: 0.9154 MB / 0.9385 GB, free: 24.46 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.2775, allocations: 0.7904 MB / 0.9393 GB, free: 23.67 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.2776, allocations: 44 kB / 0.9394 GB, free: 23.62 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.2791, allocations: 0.8581 MB / 0.9402 GB, free: 22.77 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.2793, allocations: 215.2 kB / 0.9404 GB, free: 22.55 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.2794, allocations: 201.2 kB / 0.9406 GB, free: 22.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0009652/0.2804, allocations: 1.118 MB / 0.9417 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.2804, allocations: 0 / 0.9417 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2804, allocations: 0 / 0.9417 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.2804, allocations: 0 / 0.9417 GB, free: 21.23 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.001661/0.2821, allocations: 1.164 MB / 0.9428 GB, free: 20.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2822, allocations: 15.97 kB / 0.9428 GB, free: 20 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.862e-05/0.2823, allocations: 90.52 kB / 0.9429 GB, free: 19.9 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.2824, allocations: 122.6 kB / 0.943 GB, free: 19.78 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009226/0.2834, allocations: 0.6201 MB / 0.9436 GB, free: 19.12 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/0.2834, allocations: 57 kB / 0.9437 GB, free: 19.06 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.2836, allocations: 84 kB / 0.9438 GB, free: 18.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.2844, allocations: 0.5607 MB / 0.9443 GB, free: 18.39 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.2844, allocations: 0 / 0.9443 GB, free: 18.39 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.2844, allocations: 24 kB / 0.9443 GB, free: 18.37 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.2844, allocations: 12 kB / 0.9444 GB, free: 18.36 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006997/0.2851, allocations: 411.6 kB / 0.9447 GB, free: 17.95 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.003139/0.2883, allocations: 2.536 MB / 0.9472 GB, free: 15.28 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.2887, allocations: 266.6 kB / 0.9475 GB, free: 15.01 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002096/0.289, allocations: 348.4 kB / 0.9478 GB, free: 14.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.289, allocations: 34.78 kB / 0.9478 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=29): time 2.836e-06/0.289, allocations: 0 / 0.9478 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=29): time 0.0009553/0.29, allocations: 490.3 kB / 0.9483 GB, free: 14.07 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.29, allocations: 55.39 kB / 0.9484 GB, free: 14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006371/0.2906, allocations: 0.7513 MB / 0.9491 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.245e-05/0.2907, allocations: 49.7 kB / 0.9491 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.291, allocations: 429.3 kB / 0.9496 GB, free: 12.76 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.852e-05/0.2911, allocations: 90.66 kB / 0.9496 GB, free: 12.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.218e-05/0.2911, allocations: 11.94 kB / 0.9497 GB, free: 12.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.142e-05/0.2911, allocations: 329.9 kB / 0.95 GB, free: 12.33 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002807/0.2914, allocations: 161 kB / 0.9501 GB, free: 12.18 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/0.2921, allocations: 0.7673 MB / 0.9509 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.2925, allocations: 233.1 kB / 0.9511 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2925, allocations: 0 / 0.9511 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008736/0.2934, allocations: 0.5614 MB / 0.9516 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.2935, allocations: 0.7937 MB / 0.9524 GB, free: 9.551 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2935, allocations: 8 kB / 0.9524 GB, free: 9.543 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.2936, allocations: 4 kB / 0.9524 GB, free: 9.539 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.2946, allocations: 199.7 kB / 0.9526 GB, free: 9.344 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007527/0.2954, allocations: 2.36 MB / 0.9549 GB, free: 6.891 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002673/0.2981, allocations: 0.6944 MB / 0.9556 GB, free: 6.195 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.828e-05/0.2982, allocations: 23.94 kB / 0.9556 GB, free: 6.172 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.2982, allocations: 7.953 kB / 0.9556 GB, free: 6.164 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008779/0.2991, allocations: 454.1 kB / 0.9561 GB, free: 5.719 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2991, allocations: 0 / 0.9561 GB, free: 5.719 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.2992, allocations: 4 kB / 0.9561 GB, free: 5.715 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.2997, allocations: 140 kB / 0.9562 GB, free: 5.578 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.2997, allocations: 7.938 kB / 0.9562 GB, free: 5.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003056/0.3028, allocations: 0.6789 MB / 0.9569 GB, free: 4.891 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.633e-05/0.3029, allocations: 23.98 kB / 0.9569 GB, free: 4.867 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.0004923/0.3034, allocations: 285.6 kB / 0.9572 GB, free: 4.578 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.3036, allocations: 86.92 kB / 0.9573 GB, free: 4.492 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009937/0.3046, allocations: 477.7 kB / 0.9577 GB, free: 4.02 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.3046, allocations: 4 kB / 0.9577 GB, free: 4.016 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.3046, allocations: 4 kB / 0.9577 GB, free: 4.012 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3046, allocations: 7.922 kB / 0.9577 GB, free: 4.004 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.3064, allocations: 1.143 MB / 0.9588 GB, free: 2.793 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3064, allocations: 0 / 0.9588 GB, free: 2.793 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.3068, allocations: 111.8 kB / 0.9589 GB, free: 2.684 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.3069, allocations: 4 kB / 0.9589 GB, free: 2.68 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.3069, allocations: 8 kB / 0.959 GB, free: 2.672 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006531/0.3075, allocations: 2.364 MB / 0.9613 GB, free: 220 kB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3076, allocations: 0 / 0.9613 GB, free: 220 kB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008106/0.3084, allocations: 0.5782 MB / 0.9618 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003292/0.3087, allocations: 195.9 kB / 0.962 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-05/0.3088, allocations: 8 kB / 0.962 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004767/0.3093, allocations: 59.78 kB / 0.9621 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.958e-05/0.3094, allocations: 31.95 kB / 0.9621 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.3094, allocations: 12 kB / 0.9621 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006228/0.31, allocations: 0.5068 MB / 0.9626 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3101, allocations: 0 / 0.9626 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001379/0.3114, allocations: 463.3 kB / 0.9631 GB, free: 14.3 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.002141/0.3136, allocations: 1.604 MB / 0.9646 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002449/0.3161, allocations: 0.7243 MB / 0.9653 GB, free: 11.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3161, allocations: 4 kB / 0.9653 GB, free: 11.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.3166, allocations: 211.7 kB / 0.9655 GB, free: 11.72 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.3188, allocations: 417.8 kB / 0.9659 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003747/0.3225, allocations: 3.218 MB / 0.9691 GB, free: 8 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.3231, allocations: 0.9823 MB / 0.97 GB, free: 6.988 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0009174/0.324, allocations: 170 kB / 0.9702 GB, free: 6.82 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.3244, allocations: 319.3 kB / 0.9705 GB, free: 6.508 MB / 0.6198 GB Notification: Performance of SimCode: time 7.51e-07/0.3244, allocations: 0 / 0.9705 GB, free: 6.508 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05365/0.3781, allocations: 26.44 MB / 0.9963 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002824/0.3785, allocations: 265.2 kB / 0.9966 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.869/3.248, allocations: 4 kB / 0.9966 GB, free: 12.08 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)