Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008181/0.0008183, allocations: 97.95 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004608/0.004608, allocations: 169.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205.4 MB / 222.4 MB, free: 5.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.537/1.537, allocations: 292.7 MB / 0.5502 GB, free: 14.45 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004528/0.0004529, allocations: 14.06 kB / 0.6744 GB, free: 25.99 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1844, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01749/0.2019, allocations: 18.98 MB / 0.8065 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.2135, allocations: 8.44 MB / 0.8148 GB, free: 15.97 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007335/0.2143, allocations: 23.75 kB / 0.8148 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0006897/0.215, allocations: 214.7 kB / 0.815 GB, free: 15.74 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.2167, allocations: 0.6996 MB / 0.8157 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.2185, allocations: 0.7903 MB / 0.8165 GB, free: 14.25 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001819/0.2204, allocations: 1.919 MB / 0.8183 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005165/0.2209, allocations: 444.7 kB / 0.8188 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007441/0.2217, allocations: 0.5484 MB / 0.8193 GB, free: 11.33 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005461/0.2222, allocations: 0.5094 MB / 0.8198 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 6.329e-05/0.2223, allocations: 28 kB / 0.8198 GB, free: 10.79 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009624/0.2233, allocations: 0.6665 MB / 0.8205 GB, free: 10.12 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2234, allocations: 127.4 kB / 0.8206 GB, free: 9.996 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.000293/0.2237, allocations: 375.7 kB / 0.8209 GB, free: 9.621 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.2247, allocations: 1.036 MB / 0.822 GB, free: 8.582 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.2247, allocations: 0 / 0.822 GB, free: 8.582 MB / 0.6387 GB Notification: Performance of FrontEnd: time 9.22e-07/0.2247, allocations: 0 / 0.822 GB, free: 8.582 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.2248, allocations: 0 / 0.822 GB, free: 8.582 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00153/0.2263, allocations: 0.9813 MB / 0.8229 GB, free: 7.551 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.2263, allocations: 12.03 kB / 0.8229 GB, free: 7.539 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.407e-05/0.2264, allocations: 90.64 kB / 0.823 GB, free: 7.441 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.2265, allocations: 80 kB / 0.8231 GB, free: 7.363 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/0.2271, allocations: 0.5025 MB / 0.8236 GB, free: 6.816 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.2272, allocations: 37 kB / 0.8236 GB, free: 6.781 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.2273, allocations: 52 kB / 0.8237 GB, free: 6.73 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.2283, allocations: 0.6333 MB / 0.8243 GB, free: 6.027 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.2283, allocations: 4 kB / 0.8243 GB, free: 6.023 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.2283, allocations: 16 kB / 0.8243 GB, free: 6.008 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.2284, allocations: 12 kB / 0.8243 GB, free: 5.996 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.2294, allocations: 0.519 MB / 0.8248 GB, free: 5.48 MB / 0.6387 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.003035/0.2324, allocations: 3.205 MB / 0.8279 GB, free: 2.078 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000668/0.2331, allocations: 366.4 kB / 0.8283 GB, free: 1.711 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004787/0.2336, allocations: 248.8 kB / 0.8285 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000273/0.2339, allocations: 348.4 kB / 0.8289 GB, free: 1.051 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.2339, allocations: 30.56 kB / 0.8289 GB, free: 1.012 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=38): time 1.473e-06/0.2339, allocations: 0 / 0.8289 GB, free: 1.012 MB / 0.6387 GB Notification: Performance of matching and sorting (n=38): time 0.002071/0.236, allocations: 0.869 MB / 0.8297 GB, free: 116 kB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.2361, allocations: 55.41 kB / 0.8298 GB, free: 48 kB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005937/0.2367, allocations: 0.5861 MB / 0.8304 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.2367, allocations: 29.7 kB / 0.8304 GB, free: 15.41 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.2369, allocations: 328.4 kB / 0.8307 GB, free: 15.09 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 8.616e-05/0.237, allocations: 130 kB / 0.8308 GB, free: 14.96 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.992e-05/0.2371, allocations: 57.69 kB / 0.8309 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.2372, allocations: 378.7 kB / 0.8313 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.2377, allocations: 229.2 kB / 0.8315 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005957/0.2384, allocations: 384 kB / 0.8318 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.2395, allocations: 0.5939 MB / 0.8324 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2395, allocations: 0 / 0.8324 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001462/0.241, allocations: 0.75 MB / 0.8332 GB, free: 12.45 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.2411, allocations: 223.1 kB / 0.8334 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.2411, allocations: 4 kB / 0.8334 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000615/0.2417, allocations: 160.7 kB / 0.8335 GB, free: 12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005406/0.2423, allocations: 143.8 kB / 0.8337 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005559/0.2429, allocations: 0.6303 MB / 0.8343 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005569/0.2434, allocations: 99.39 kB / 0.8344 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.392e-05/0.2435, allocations: 31.92 kB / 0.8344 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.622e-06/0.2435, allocations: 4 kB / 0.8344 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001265/0.2448, allocations: 0.6307 MB / 0.835 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.2448, allocations: 8 kB / 0.835 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.211e-06/0.2448, allocations: 4 kB / 0.835 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/0.2454, allocations: 168.3 kB / 0.8352 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2454, allocations: 11.98 kB / 0.8352 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.2459, allocations: 91.42 kB / 0.8353 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.764e-05/0.246, allocations: 31.98 kB / 0.8353 GB, free: 10.13 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002607/0.2463, allocations: 269.6 kB / 0.8356 GB, free: 9.859 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.822e-05/0.2463, allocations: 63.16 kB / 0.8356 GB, free: 9.797 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.2478, allocations: 0.6709 MB / 0.8363 GB, free: 9.109 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.2478, allocations: 8 kB / 0.8363 GB, free: 9.102 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2479, allocations: 3.938 kB / 0.8363 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.2479, allocations: 3.984 kB / 0.8363 GB, free: 9.094 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.2502, allocations: 1.408 MB / 0.8377 GB, free: 7.613 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.2503, allocations: 4.094 kB / 0.8377 GB, free: 7.609 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.2506, allocations: 99.94 kB / 0.8378 GB, free: 7.512 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004021/0.251, allocations: 124.8 kB / 0.8379 GB, free: 7.387 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.2511, allocations: 15.94 kB / 0.8379 GB, free: 7.371 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005886/0.2517, allocations: 0.6381 MB / 0.8385 GB, free: 6.707 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2517, allocations: 4.031 kB / 0.8385 GB, free: 6.703 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.253, allocations: 0.7243 MB / 0.8392 GB, free: 5.953 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.2533, allocations: 204.1 kB / 0.8394 GB, free: 5.734 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.095e-05/0.2533, allocations: 8 kB / 0.8395 GB, free: 5.727 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/0.2538, allocations: 59.94 kB / 0.8395 GB, free: 5.668 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.2539, allocations: 39.83 kB / 0.8395 GB, free: 5.629 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.2539, allocations: 12 kB / 0.8396 GB, free: 5.617 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0004183/0.2543, allocations: 399.1 kB / 0.8399 GB, free: 5.234 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2543, allocations: 4 kB / 0.8399 GB, free: 5.23 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009675/0.2553, allocations: 395.3 kB / 0.8403 GB, free: 4.844 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002074/0.2574, allocations: 1.467 MB / 0.8418 GB, free: 3.348 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001857/0.2593, allocations: 0.8988 MB / 0.8426 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2593, allocations: 0 / 0.8426 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0007176/0.26, allocations: 312 kB / 0.8429 GB, free: 2.148 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001577/0.2616, allocations: 266.8 kB / 0.8432 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007872/0.2695, allocations: 5.747 MB / 0.8488 GB, free: 11.91 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.2699, allocations: 0.9116 MB / 0.8497 GB, free: 10.97 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005763/0.2705, allocations: 160.3 kB / 0.8498 GB, free: 10.82 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/0.2709, allocations: 243.3 kB / 0.8501 GB, free: 10.58 MB / 0.67 GB Notification: Performance of SimCode: time 5.61e-07/0.2709, allocations: 4 kB / 0.8501 GB, free: 10.58 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.145/3.416, allocations: 17.77 MB / 0.8674 GB, free: 9.199 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003581/3.416, allocations: 292.1 kB / 0.8677 GB, free: 8.824 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.494/5.91, allocations: 0 / 0.8677 GB, free: 8.824 MB / 0.6856 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)