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.569/2.569, allocations: 287.3 MB / 302.3 MB, free: 8.266 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.002109/0.002109, allocations: 183.2 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.308/2.308, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001155/0.001155, allocations: 84.91 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006359/0.0006361, allocations: 12.34 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2314, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03435/0.2658, allocations: 25.41 MB / 1.003 GB, free: 2.816 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.02436/0.2902, allocations: 10.32 MB / 1.013 GB, free: 8.488 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.292, allocations: 35.62 kB / 1.013 GB, free: 8.453 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003589/0.2956, allocations: 0.6184 MB / 1.014 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.006745/0.3024, allocations: 1.39 MB / 1.015 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01234/0.3148, allocations: 2.888 MB / 1.018 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.005497/0.3203, allocations: 2.097 MB / 1.02 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.323, allocations: 1.094 MB / 1.021 GB, free: 384 kB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003944/0.327, allocations: 1.27 MB / 1.022 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004509/0.3315, allocations: 1.289 MB / 1.024 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0008381/0.3324, allocations: 67.94 kB / 1.024 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003556/0.336, allocations: 0.8971 MB / 1.025 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0009723/0.337, allocations: 330.9 kB / 1.025 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0006657/0.3377, allocations: 245.1 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.003536/0.3413, allocations: 1.535 MB / 1.027 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3413, allocations: 0 / 1.027 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.976e-06/0.3414, allocations: 0 / 1.027 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.795e-05/0.3414, allocations: 0 / 1.027 GB, free: 10.73 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.003828/0.3453, allocations: 1.332 MB / 1.028 GB, free: 9.352 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.3453, allocations: 12.03 kB / 1.028 GB, free: 9.34 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002298/0.3456, allocations: 98.52 kB / 1.028 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006694/0.3463, allocations: 146.5 kB / 1.028 GB, free: 9.09 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.3494, allocations: 0.8563 MB / 1.029 GB, free: 8.191 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.3496, allocations: 81.31 kB / 1.029 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004875/0.3501, allocations: 116 kB / 1.029 GB, free: 8 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.3519, allocations: 0.6434 MB / 1.03 GB, free: 7.328 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.3519, allocations: 0 / 1.03 GB, free: 7.328 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.439e-05/0.352, allocations: 20 kB / 1.03 GB, free: 7.309 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/0.3521, allocations: 16 kB / 1.03 GB, free: 7.293 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.3537, allocations: 476.8 kB / 1.03 GB, free: 6.828 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.008298/0.362, allocations: 2.859 MB / 1.033 GB, free: 3.816 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.3632, allocations: 317.1 kB / 1.033 GB, free: 3.5 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004357/0.3637, allocations: 344.7 kB / 1.034 GB, free: 3.09 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.3637, allocations: 34.84 kB / 1.034 GB, free: 3.047 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 3.396e-06/0.3637, allocations: 0 / 1.034 GB, free: 3.047 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.002372/0.3661, allocations: 0.5403 MB / 1.034 GB, free: 2.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/0.3662, allocations: 55.41 kB / 1.034 GB, free: 2.434 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.368, allocations: 0.8868 MB / 1.035 GB, free: 1.527 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0003671/0.3684, allocations: 57.7 kB / 1.035 GB, free: 1.465 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007824/0.3692, allocations: 0.5413 MB / 1.036 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.3694, allocations: 110.3 kB / 1.036 GB, free: 0.8008 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.3695, allocations: 16 kB / 1.036 GB, free: 0.7852 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3696, allocations: 326 kB / 1.036 GB, free: 472 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007384/0.3704, allocations: 177.2 kB / 1.036 GB, free: 292 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002305/0.3727, allocations: 1.139 MB / 1.037 GB, free: 14.78 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.3738, allocations: 302.8 kB / 1.038 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.3739, allocations: 0 / 1.038 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002425/0.3763, allocations: 0.6461 MB / 1.038 GB, free: 13.84 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004131/0.3768, allocations: 0.8117 MB / 1.039 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3768, allocations: 4 kB / 1.039 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.3768, allocations: 4.094 kB / 1.039 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.3796, allocations: 247.6 kB / 1.039 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.3822, allocations: 2.957 MB / 1.042 GB, free: 9.641 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/0.3889, allocations: 0.7457 MB / 1.043 GB, free: 8.895 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000224/0.3892, allocations: 27.98 kB / 1.043 GB, free: 8.867 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.3892, allocations: 4 kB / 1.043 GB, free: 8.863 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001796/0.391, allocations: 0.4972 MB / 1.044 GB, free: 8.363 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3911, allocations: 4 kB / 1.044 GB, free: 8.359 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3911, allocations: 4 kB / 1.044 GB, free: 8.355 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.3925, allocations: 159.8 kB / 1.044 GB, free: 8.199 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.3925, allocations: 7.938 kB / 1.044 GB, free: 8.191 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006439/0.399, allocations: 0.7419 MB / 1.044 GB, free: 7.449 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/0.3992, allocations: 23.98 kB / 1.044 GB, free: 7.426 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.0009958/0.4002, allocations: 329.9 kB / 1.045 GB, free: 7.094 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.4006, allocations: 94.78 kB / 1.045 GB, free: 7 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.4026, allocations: 0.5209 MB / 1.045 GB, free: 6.469 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.4026, allocations: 4 kB / 1.045 GB, free: 6.465 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4027, allocations: 0 / 1.045 GB, free: 6.465 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.4027, allocations: 7.984 kB / 1.045 GB, free: 6.457 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003645/0.4063, allocations: 1.267 MB / 1.047 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.4064, allocations: 3.938 kB / 1.047 GB, free: 5.117 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4075, allocations: 116 kB / 1.047 GB, free: 5.004 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.4075, allocations: 0 / 1.047 GB, free: 5.004 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.416e-05/0.4076, allocations: 19.94 kB / 1.047 GB, free: 4.984 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002012/0.4096, allocations: 2.946 MB / 1.05 GB, free: 1.922 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4096, allocations: 0 / 1.05 GB, free: 1.922 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.4114, allocations: 0.6258 MB / 1.05 GB, free: 1.246 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005693/0.412, allocations: 219.7 kB / 1.05 GB, free: 1.012 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/0.4122, allocations: 11.98 kB / 1.051 GB, free: 1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.4132, allocations: 67.78 kB / 1.051 GB, free: 0.9336 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.4133, allocations: 27.91 kB / 1.051 GB, free: 0.9062 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-05/0.4134, allocations: 16 kB / 1.051 GB, free: 0.8906 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001284/0.4147, allocations: 0.5844 MB / 1.051 GB, free: 304 kB / 0.6667 GB Notification: Performance of sort global known variables: time 5.01e-07/0.4147, allocations: 0 / 1.051 GB, free: 304 kB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002494/0.4173, allocations: 0.5384 MB / 1.052 GB, free: 15.75 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.003222/0.4205, allocations: 1.649 MB / 1.053 GB, free: 14.06 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004806/0.4254, allocations: 0.8429 MB / 1.054 GB, free: 13.22 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.4254, allocations: 0 / 1.054 GB, free: 13.22 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.4266, allocations: 240.2 kB / 1.054 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004625/0.4313, allocations: 486.8 kB / 1.055 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006554/0.4379, allocations: 3.529 MB / 1.058 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008695/0.4388, allocations: 1.042 MB / 1.059 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001795/0.4406, allocations: 215 kB / 1.06 GB, free: 7.59 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008229/0.4415, allocations: 371.3 kB / 1.06 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of SimCode: time 1.343e-06/0.4415, allocations: 0 / 1.06 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7952/1.237, allocations: 31.84 MB / 1.091 GB, free: 82.19 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002668/1.237, allocations: 250.5 kB / 1.091 GB, free: 81.86 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.136/5.373, allocations: 1.312 kB / 1.091 GB, free: 81.86 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)