Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.778/2.778, allocations: 287.3 MB / 302.3 MB, free: 8.285 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.001563/0.001563, allocations: 183.1 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.001162/0.001161, allocations: 96.72 kB / 0.7428 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000511/0.000511, allocations: 16.81 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.239, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.3/1.539, allocations: 401.1 MB / 1.37 GB, free: 12.45 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003829/1.54, allocations: 99.94 kB / 1.37 GB, free: 12.4 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.781/4.32, allocations: 430.3 MB / 1.79 GB, free: 215.5 MB / 0.9323 GB Notification: Performance of FrontEnd: time 3.447e-06/4.321, allocations: 0 / 1.79 GB, free: 215.5 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001816/4.321, allocations: 35.17 kB / 1.79 GB, free: 215.5 MB / 0.9323 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.005584/4.326, allocations: 1.512 MB / 1.792 GB, free: 215.1 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/4.326, allocations: 9.281 kB / 1.792 GB, free: 215.1 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000316/4.327, allocations: 100.8 kB / 1.792 GB, free: 215 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009274/4.328, allocations: 152.3 kB / 1.792 GB, free: 215 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/4.331, allocations: 0.8351 MB / 1.793 GB, free: 214.7 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/4.331, allocations: 79.06 kB / 1.793 GB, free: 214.7 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006558/4.332, allocations: 123.2 kB / 1.793 GB, free: 214.7 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/4.334, allocations: 0.6287 MB / 1.794 GB, free: 214.6 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/4.334, allocations: 4.344 kB / 1.794 GB, free: 214.6 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-05/4.334, allocations: 20.41 kB / 1.794 GB, free: 214.6 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/4.334, allocations: 15.38 kB / 1.794 GB, free: 214.6 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/4.336, allocations: 476.6 kB / 1.794 GB, free: 214.6 MB / 0.9323 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.009619/4.346, allocations: 3.067 MB / 1.797 GB, free: 213.3 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/4.347, allocations: 334.4 kB / 1.798 GB, free: 213.3 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003877/4.347, allocations: 352.5 kB / 1.798 GB, free: 212.9 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/4.347, allocations: 35.16 kB / 1.798 GB, free: 212.9 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=33): time 2.766e-06/4.347, allocations: 3.031 kB / 1.798 GB, free: 212.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=33): time 0.002901/4.35, allocations: 0.5585 MB / 1.798 GB, free: 212.8 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/4.35, allocations: 59.55 kB / 1.799 GB, free: 212.8 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/4.352, allocations: 0.7689 MB / 1.799 GB, free: 212.6 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0007244/4.353, allocations: 56.92 kB / 1.799 GB, free: 212.6 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009713/4.354, allocations: 0.5531 MB / 1.8 GB, free: 212.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/4.354, allocations: 121.9 kB / 1.8 GB, free: 212.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.443e-05/4.354, allocations: 12.28 kB / 1.8 GB, free: 212.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.928e-05/4.354, allocations: 324.7 kB / 1.8 GB, free: 212 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007203/4.355, allocations: 188.3 kB / 1.8 GB, free: 212 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/4.358, allocations: 1.427 MB / 1.802 GB, free: 211 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/4.359, allocations: 321 kB / 1.802 GB, free: 211 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/4.359, allocations: 1.125 kB / 1.802 GB, free: 211 MB / 0.9323 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00285/4.362, allocations: 0.6544 MB / 1.803 GB, free: 210.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002052/4.362, allocations: 0.8069 MB / 1.804 GB, free: 210 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/4.362, allocations: 2.5 kB / 1.804 GB, free: 210 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/4.362, allocations: 4.844 kB / 1.804 GB, free: 210 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/4.365, allocations: 204.5 kB / 1.804 GB, free: 210 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/4.367, allocations: 2.956 MB / 1.807 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007398/4.374, allocations: 0.914 MB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002882/4.374, allocations: 32.89 kB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/4.374, allocations: 8.891 kB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001796/4.376, allocations: 0.5043 MB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/4.376, allocations: 2.469 kB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/4.376, allocations: 9.281 kB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/4.378, allocations: 160.4 kB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/4.378, allocations: 6.156 kB / 1.808 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008032/4.386, allocations: 0.906 MB / 1.809 GB, free: 207.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002362/4.386, allocations: 25.31 kB / 1.809 GB, free: 207.1 MB / 0.9323 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.001307/4.387, allocations: 333.1 kB / 1.81 GB, free: 206.9 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003974/4.388, allocations: 91.48 kB / 1.81 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/4.39, allocations: 0.5364 MB / 1.81 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/4.39, allocations: 6.172 kB / 1.81 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/4.39, allocations: 0 / 1.81 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/4.39, allocations: 2.391 kB / 1.81 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00337/4.393, allocations: 1.288 MB / 1.811 GB, free: 206.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/4.393, allocations: 3.953 kB / 1.811 GB, free: 206.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009785/4.394, allocations: 121.4 kB / 1.812 GB, free: 206.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/4.394, allocations: 3.688 kB / 1.812 GB, free: 206.4 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.201e-05/4.394, allocations: 23.66 kB / 1.812 GB, free: 206.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/4.395, allocations: 2.933 MB / 1.814 GB, free: 203.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/4.395, allocations: 1.781 kB / 1.814 GB, free: 203.5 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/4.397, allocations: 0.6433 MB / 1.815 GB, free: 203.2 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006018/4.398, allocations: 213.7 kB / 1.815 GB, free: 203.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/4.398, allocations: 12.89 kB / 1.815 GB, free: 203.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/4.399, allocations: 73.02 kB / 1.815 GB, free: 203.1 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/4.399, allocations: 30.52 kB / 1.815 GB, free: 203.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-05/4.399, allocations: 16.19 kB / 1.815 GB, free: 203.1 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001139/4.4, allocations: 0.5861 MB / 1.816 GB, free: 202.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 4.01e-07/4.4, allocations: 3.828 kB / 1.816 GB, free: 202.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00306/4.403, allocations: 0.6066 MB / 1.817 GB, free: 202.9 MB / 0.9323 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.003175/4.406, allocations: 1.844 MB / 1.818 GB, free: 201.8 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.004844/4.411, allocations: 0.8314 MB / 1.819 GB, free: 201.8 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 9.158e-06/4.411, allocations: 0 / 1.819 GB, free: 201.8 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001051/4.413, allocations: 231.2 kB / 1.819 GB, free: 201.8 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004745/4.417, allocations: 485.3 kB / 1.82 GB, free: 201.8 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007242/4.425, allocations: 3.505 MB / 1.823 GB, free: 199.4 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007874/4.425, allocations: 1.047 MB / 1.824 GB, free: 198.7 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.002406/4.428, allocations: 210.7 kB / 1.824 GB, free: 198.7 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008157/4.429, allocations: 368.5 kB / 1.825 GB, free: 198.7 MB / 0.9323 GB Notification: Performance of SimCode: time 1.673e-06/4.429, allocations: 0 / 1.825 GB, free: 198.7 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/4.529, allocations: 36.51 MB / 1.861 GB, free: 197.8 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002535/4.529, allocations: 248.5 kB / 1.861 GB, free: 197.4 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.368/8.897, allocations: 0 / 1.861 GB, free: 197.4 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)