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 1.761/1.761, allocations: 287.4 MB / 302.6 MB, free: 8.195 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.0009909/0.0009909, allocations: 188.7 kB / 371.1 MB, free: 10.82 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.468/1.468, allocations: 205.4 MB / 0.6298 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.0007666/0.0007666, allocations: 96.41 kB / 0.7431 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005181/0.0005183, allocations: 11.19 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1806, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.01793/0.1986, allocations: 27.75 MB / 1.006 GB, free: 284 kB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01454/0.2131, allocations: 10.98 MB / 1.017 GB, free: 5.285 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.2143, allocations: 39.62 kB / 1.017 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0008253/0.2151, allocations: 297.9 kB / 1.017 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.002555/0.2177, allocations: 1.071 MB / 1.018 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.2199, allocations: 0.9645 MB / 1.019 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.003236/0.2231, allocations: 3.544 MB / 1.022 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.2242, allocations: 1.112 MB / 1.023 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.2264, allocations: 1.452 MB / 1.025 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.2286, allocations: 1.55 MB / 1.026 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.000276/0.2289, allocations: 64 kB / 1.026 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.2306, allocations: 0.8656 MB / 1.027 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0003781/0.231, allocations: 326.8 kB / 1.028 GB, free: 9.98 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.00025/0.2312, allocations: 249.1 kB / 1.028 GB, free: 9.73 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.2325, allocations: 1.524 MB / 1.029 GB, free: 8.203 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2325, allocations: 3.938 kB / 1.029 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2325, allocations: 0 / 1.029 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.713e-05/0.2326, allocations: 0 / 1.029 GB, free: 8.199 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.001949/0.2345, allocations: 1.325 MB / 1.031 GB, free: 6.82 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2346, allocations: 12.03 kB / 1.031 GB, free: 6.809 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.861e-05/0.2347, allocations: 98.69 kB / 1.031 GB, free: 6.703 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.2349, allocations: 146.9 kB / 1.031 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.2364, allocations: 0.8907 MB / 1.032 GB, free: 5.625 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/0.2364, allocations: 81.31 kB / 1.032 GB, free: 5.547 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002198/0.2367, allocations: 116 kB / 1.032 GB, free: 5.434 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009654/0.2376, allocations: 0.6434 MB / 1.033 GB, free: 4.762 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.2377, allocations: 0 / 1.033 GB, free: 4.762 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.2377, allocations: 20 kB / 1.033 GB, free: 4.742 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.2377, allocations: 19.94 kB / 1.033 GB, free: 4.723 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008491/0.2386, allocations: 476.8 kB / 1.033 GB, free: 4.258 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.00394/0.2425, allocations: 2.859 MB / 1.036 GB, free: 1.246 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005501/0.2431, allocations: 319.2 kB / 1.036 GB, free: 0.9297 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.2434, allocations: 157.3 kB / 1.036 GB, free: 0.7734 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000271/0.2437, allocations: 344.6 kB / 1.037 GB, free: 372 kB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.2437, allocations: 38.84 kB / 1.037 GB, free: 324 kB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.2437, allocations: 0 / 1.037 GB, free: 324 kB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.001141/0.2449, allocations: 0.543 MB / 1.037 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.2449, allocations: 63.33 kB / 1.037 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009223/0.2458, allocations: 0.8791 MB / 1.038 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 9.839e-05/0.2459, allocations: 57.7 kB / 1.038 GB, free: 14.73 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004177/0.2464, allocations: 0.5372 MB / 1.039 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 8.29e-05/0.2465, allocations: 114.3 kB / 1.039 GB, free: 14.07 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.2465, allocations: 12 kB / 1.039 GB, free: 14.06 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.2466, allocations: 333.9 kB / 1.039 GB, free: 13.73 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.247, allocations: 177.2 kB / 1.039 GB, free: 13.55 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.2482, allocations: 1.143 MB / 1.04 GB, free: 12.04 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007491/0.2489, allocations: 451.4 kB / 1.041 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.249, allocations: 0 / 1.041 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00112/0.2501, allocations: 0.6385 MB / 1.041 GB, free: 10.93 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.058e-05/0.2502, allocations: 148.2 kB / 1.042 GB, free: 10.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2502, allocations: 4 kB / 1.042 GB, free: 10.75 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2502, allocations: 7.938 kB / 1.042 GB, free: 10.74 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.2516, allocations: 243.6 kB / 1.042 GB, free: 10.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.2531, allocations: 2.953 MB / 1.045 GB, free: 7.434 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/0.2562, allocations: 0.7535 MB / 1.045 GB, free: 6.68 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-05/0.2563, allocations: 27.98 kB / 1.045 GB, free: 6.652 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.304e-06/0.2563, allocations: 4 kB / 1.045 GB, free: 6.648 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009896/0.2573, allocations: 0.501 MB / 1.046 GB, free: 6.152 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-06/0.2573, allocations: 0 / 1.046 GB, free: 6.152 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.111e-06/0.2573, allocations: 8 kB / 1.046 GB, free: 6.145 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006424/0.258, allocations: 159.8 kB / 1.046 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.258, allocations: 4 kB / 1.046 GB, free: 5.984 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002989/0.261, allocations: 0.7341 MB / 1.047 GB, free: 5.25 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.2611, allocations: 31.98 kB / 1.047 GB, free: 5.219 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.0003542/0.2614, allocations: 329.8 kB / 1.047 GB, free: 4.883 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.2615, allocations: 98.77 kB / 1.047 GB, free: 4.785 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.2625, allocations: 0.5171 MB / 1.048 GB, free: 4.262 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.2626, allocations: 4 kB / 1.048 GB, free: 4.258 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2626, allocations: 0 / 1.048 GB, free: 4.258 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2626, allocations: 3.984 kB / 1.048 GB, free: 4.254 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.2644, allocations: 1.267 MB / 1.049 GB, free: 2.918 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.2644, allocations: 4 kB / 1.049 GB, free: 2.914 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.2649, allocations: 127.9 kB / 1.049 GB, free: 2.789 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.2649, allocations: 4 kB / 1.049 GB, free: 2.785 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.2649, allocations: 8 kB / 1.049 GB, free: 2.777 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.2663, allocations: 2.942 MB / 1.052 GB, free: 15.72 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2663, allocations: 8.031 kB / 1.052 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008447/0.2671, allocations: 0.5775 MB / 1.053 GB, free: 15.11 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.2674, allocations: 219.6 kB / 1.053 GB, free: 14.87 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.23e-05/0.2675, allocations: 8 kB / 1.053 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/0.268, allocations: 59.88 kB / 1.053 GB, free: 14.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.2681, allocations: 27.91 kB / 1.053 GB, free: 14.78 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.2681, allocations: 23.98 kB / 1.053 GB, free: 14.75 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0007509/0.2689, allocations: 0.5845 MB / 1.054 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2689, allocations: 0 / 1.054 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001266/0.2701, allocations: 0.5305 MB / 1.054 GB, free: 13.63 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.001761/0.2719, allocations: 1.342 MB / 1.055 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002303/0.2742, allocations: 0.8393 MB / 1.056 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2742, allocations: 4 kB / 1.056 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005632/0.2748, allocations: 239.7 kB / 1.056 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002659/0.2775, allocations: 479.8 kB / 1.057 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007599/0.2851, allocations: 5.034 MB / 1.062 GB, free: 5.441 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005552/0.2857, allocations: 1.021 MB / 1.063 GB, free: 4.391 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0009984/0.2867, allocations: 215.1 kB / 1.063 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/0.2871, allocations: 371.2 kB / 1.063 GB, free: 3.812 MB / 0.6823 GB Notification: Performance of SimCode: time 5.61e-07/0.2872, allocations: 3.938 kB / 1.063 GB, free: 3.809 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.404/0.6912, allocations: 32.45 MB / 1.095 GB, free: 79.94 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.6914, allocations: 265.6 kB / 1.095 GB, free: 79.6 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.177/3.869, allocations: 1.094 kB / 1.095 GB, free: 79.6 MB / 0.6823 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)