Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.213/1.213, allocations: 251.5 MB / 266.7 MB, free: 11.06 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.000844/0.000844, allocations: 177.2 kB / 325.8 MB, free: 2.723 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.232/1.232, allocations: 205 MB / 0.576 GB, free: 20.96 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.0006566/0.0006566, allocations: 81.55 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000257/0.0002571, allocations: 11.47 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1305, allocations: 105.4 MB / 0.8962 GB, free: 68.12 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.07299/0.2035, allocations: 112.1 MB / 1.006 GB, free: 3.598 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02805/0.2316, allocations: 24.45 MB / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002958/0.2346, allocations: 107.1 kB / 1.03 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.2374, allocations: 1.041 MB / 1.031 GB, free: 9.941 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.007023/0.2444, allocations: 3.334 MB / 1.034 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.00538/0.2498, allocations: 2.773 MB / 1.037 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.008113/0.2579, allocations: 9.413 MB / 1.046 GB, free: 10.42 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/0.2605, allocations: 2.031 MB / 1.048 GB, free: 8.332 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003774/0.2643, allocations: 2.333 MB / 1.05 GB, free: 5.988 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002572/0.2668, allocations: 2.018 MB / 1.052 GB, free: 3.961 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0003327/0.2672, allocations: 95.94 kB / 1.052 GB, free: 3.867 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/0.2698, allocations: 1.415 MB / 1.054 GB, free: 2.449 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0005089/0.2703, allocations: 0.5093 MB / 1.054 GB, free: 1.938 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.2717, allocations: 1.282 MB / 1.055 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.2973/0.569, allocations: 4.071 MB / 1.059 GB, free: 40.26 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5691, allocations: 1.375 kB / 1.059 GB, free: 40.26 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5691, allocations: 0 / 1.059 GB, free: 40.26 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.078e-05/0.5691, allocations: 0 / 1.059 GB, free: 40.26 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003164/0.5723, allocations: 2.656 MB / 1.062 GB, free: 39.03 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.5723, allocations: 15.38 kB / 1.062 GB, free: 39.03 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002079/0.5726, allocations: 218.2 kB / 1.062 GB, free: 38.98 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004923/0.5731, allocations: 314.3 kB / 1.062 GB, free: 38.83 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.5755, allocations: 2.106 MB / 1.064 GB, free: 38.26 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.023e-05/0.5756, allocations: 126.8 kB / 1.065 GB, free: 38.26 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001815/0.5758, allocations: 167.3 kB / 1.065 GB, free: 38.26 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.578, allocations: 1.6 MB / 1.066 GB, free: 38.06 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.578, allocations: 8.172 kB / 1.066 GB, free: 38.06 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.5782, allocations: 62.88 kB / 1.066 GB, free: 38.06 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.293e-05/0.5782, allocations: 43.38 kB / 1.066 GB, free: 38.06 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.5801, allocations: 1.148 MB / 1.068 GB, free: 38.05 MB / 0.698 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.007422/0.5875, allocations: 7.864 MB / 1.075 GB, free: 34.38 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006737/0.5882, allocations: 479.5 kB / 1.076 GB, free: 34.35 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/0.5887, allocations: 323.4 kB / 1.076 GB, free: 34.34 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003632/0.589, allocations: 0.7529 MB / 1.077 GB, free: 33.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.5891, allocations: 46.16 kB / 1.077 GB, free: 33.45 MB / 0.698 GB Notification: Performance of pre-optimization done (n=60): time 1.924e-06/0.5891, allocations: 0 / 1.077 GB, free: 33.45 MB / 0.698 GB Notification: Performance of matching and sorting (n=60): time 0.001497/0.5906, allocations: 0.9912 MB / 1.078 GB, free: 33.29 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.5906, allocations: 64.03 kB / 1.078 GB, free: 33.21 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002361/0.593, allocations: 2.261 MB / 1.08 GB, free: 32.97 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.191e-05/0.5931, allocations: 47.86 kB / 1.08 GB, free: 32.94 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006236/0.5937, allocations: 1.144 MB / 1.081 GB, free: 32.59 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.5938, allocations: 213.9 kB / 1.081 GB, free: 32.46 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.5939, allocations: 106.7 kB / 1.081 GB, free: 32.45 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.131e-05/0.594, allocations: 349.1 kB / 1.082 GB, free: 32.14 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005326/0.5945, allocations: 358.3 kB / 1.082 GB, free: 32.14 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007237/0.5953, allocations: 0.7435 MB / 1.083 GB, free: 31.71 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.5964, allocations: 0.9879 MB / 1.084 GB, free: 31.39 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.5964, allocations: 2.25 kB / 1.084 GB, free: 31.39 MB / 0.698 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001792/0.5982, allocations: 1.295 MB / 1.085 GB, free: 31.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-05/0.5983, allocations: 344.2 kB / 1.085 GB, free: 30.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.5983, allocations: 14.42 kB / 1.085 GB, free: 30.83 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.5983, allocations: 14.28 kB / 1.085 GB, free: 30.83 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008298/0.5992, allocations: 254.7 kB / 1.086 GB, free: 30.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.5992, allocations: 17 kB / 1.086 GB, free: 30.83 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.6006, allocations: 253.3 kB / 1.086 GB, free: 30.74 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.071e-05/0.6007, allocations: 57.83 kB / 1.086 GB, free: 30.74 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/0.6007, allocations: 5 kB / 1.086 GB, free: 30.74 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/0.6021, allocations: 1.028 MB / 1.087 GB, free: 30.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.6021, allocations: 9.438 kB / 1.087 GB, free: 30.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.6021, allocations: 13.84 kB / 1.087 GB, free: 30.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007393/0.6028, allocations: 247.7 kB / 1.087 GB, free: 30.72 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.6029, allocations: 21.47 kB / 1.087 GB, free: 30.72 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.604, allocations: 228.2 kB / 1.088 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/0.604, allocations: 51.12 kB / 1.088 GB, free: 30.64 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0005975/0.6046, allocations: 0.5742 MB / 1.088 GB, free: 30.45 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/0.6049, allocations: 233.9 kB / 1.088 GB, free: 30.32 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.6061, allocations: 0.8807 MB / 1.089 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.6062, allocations: 13.08 kB / 1.089 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6062, allocations: 0 / 1.089 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000763/0.6069, allocations: 0.6945 MB / 1.09 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.6096, allocations: 2.54 MB / 1.092 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.6096, allocations: 3.5 kB / 1.092 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.6101, allocations: 127.2 kB / 1.093 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.6101, allocations: 6.438 kB / 1.093 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.6101, allocations: 17.38 kB / 1.093 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.6101, allocations: 3.312 kB / 1.093 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.6101, allocations: 3.094 kB / 1.093 GB, free: 29.68 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.6116, allocations: 1.317 MB / 1.094 GB, free: 29.37 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004154/0.612, allocations: 397 kB / 1.094 GB, free: 29.15 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.6122, allocations: 14.5 kB / 1.094 GB, free: 29.15 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008886/0.6131, allocations: 121.5 kB / 1.094 GB, free: 29.13 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.608e-05/0.6132, allocations: 43.39 kB / 1.094 GB, free: 29.13 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.443e-05/0.6132, allocations: 39.05 kB / 1.094 GB, free: 29.13 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001447/0.6147, allocations: 1.509 MB / 1.096 GB, free: 28.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6147, allocations: 0 / 1.096 GB, free: 28.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001928/0.6166, allocations: 1.091 MB / 1.097 GB, free: 28.83 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002703/0.6194, allocations: 2.507 MB / 1.099 GB, free: 27.88 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0021/0.6215, allocations: 1.358 MB / 1.101 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.6215, allocations: 0.75 kB / 1.101 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000548/0.622, allocations: 332.7 kB / 1.101 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00527/0.6273, allocations: 1.407 MB / 1.102 GB, free: 27.73 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02194/0.6493, allocations: 17.84 MB / 1.12 GB, free: 19.39 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007753/0.6501, allocations: 1.579 MB / 1.121 GB, free: 18.63 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001705/0.6518, allocations: 489.8 kB / 1.122 GB, free: 18.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008074/0.6526, allocations: 0.9465 MB / 1.123 GB, free: 18.51 MB / 0.698 GB Notification: Performance of SimCode: time 4e-07/0.6526, allocations: 0 / 1.123 GB, free: 18.51 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3841/1.037, allocations: 63.52 MB / 1.185 GB, free: 12.15 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002376/1.037, allocations: 265.9 kB / 1.185 GB, free: 11.85 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.516/5.553, allocations: 0 / 1.185 GB, free: 11.85 MB / 0.7448 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)