Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",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.001161/0.001161, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001279/0.001279, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.4 MB / 222.1 MB, free: 5.656 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 2.099/2.099, allocations: 292.6 MB / 0.5497 GB, free: 14.63 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.0005914/0.0005917, allocations: 15 kB / 0.6737 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2383, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03318/0.2716, allocations: 25.42 MB / 0.8121 GB, free: 2.371 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01455/0.2862, allocations: 10.31 MB / 0.8221 GB, free: 8.047 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.2883, allocations: 39.62 kB / 0.8222 GB, free: 8.008 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002202/0.2906, allocations: 0.6145 MB / 0.8228 GB, free: 7.391 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004693/0.2953, allocations: 1.389 MB / 0.8241 GB, free: 6 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.009459/0.3047, allocations: 2.891 MB / 0.8269 GB, free: 3.145 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0043/0.3091, allocations: 2.089 MB / 0.829 GB, free: 1.047 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002157/0.3112, allocations: 1.086 MB / 0.83 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00292/0.3142, allocations: 1.278 MB / 0.8313 GB, free: 14.67 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002538/0.3167, allocations: 1.289 MB / 0.8326 GB, free: 13.38 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0007134/0.3175, allocations: 64 kB / 0.8326 GB, free: 13.31 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002717/0.3202, allocations: 0.901 MB / 0.8335 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007282/0.3209, allocations: 330.8 kB / 0.8338 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0007308/0.3217, allocations: 245.1 kB / 0.834 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.3244, allocations: 1.528 MB / 0.8355 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3245, allocations: 0 / 0.8355 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.066e-06/0.3245, allocations: 0 / 0.8355 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.869e-05/0.3246, allocations: 4 kB / 0.8355 GB, free: 10.3 MB / 0.6544 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.003276/0.3278, allocations: 1.328 MB / 0.8368 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3279, allocations: 12.03 kB / 0.8368 GB, free: 8.91 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002081/0.3281, allocations: 102.5 kB / 0.8369 GB, free: 8.801 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005561/0.3287, allocations: 142.6 kB / 0.8371 GB, free: 8.66 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/0.3309, allocations: 0.8601 MB / 0.8379 GB, free: 7.758 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.3311, allocations: 85.31 kB / 0.838 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002552/0.3313, allocations: 116 kB / 0.8381 GB, free: 7.562 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.3326, allocations: 0.6395 MB / 0.8387 GB, free: 6.895 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.3326, allocations: 4 kB / 0.8387 GB, free: 6.891 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-05/0.3327, allocations: 23.98 kB / 0.8388 GB, free: 6.867 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.3327, allocations: 16 kB / 0.8388 GB, free: 6.852 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009991/0.3337, allocations: 468.9 kB / 0.8392 GB, free: 6.391 MB / 0.6544 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.005216/0.3389, allocations: 2.867 MB / 0.842 GB, free: 3.367 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.3396, allocations: 307.2 kB / 0.8423 GB, free: 3.062 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003652/0.3399, allocations: 348.7 kB / 0.8427 GB, free: 2.648 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.34, allocations: 34.84 kB / 0.8427 GB, free: 2.605 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.354e-06/0.34, allocations: 7.938 kB / 0.8427 GB, free: 2.598 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001296/0.3413, allocations: 0.5383 MB / 0.8432 GB, free: 2.055 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.3413, allocations: 55.41 kB / 0.8433 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.3425, allocations: 0.883 MB / 0.8441 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001801/0.3427, allocations: 53.7 kB / 0.8442 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006393/0.3433, allocations: 0.5372 MB / 0.8447 GB, free: 492 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.3435, allocations: 118.3 kB / 0.8448 GB, free: 372 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.3435, allocations: 12 kB / 0.8448 GB, free: 360 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3437, allocations: 334 kB / 0.8452 GB, free: 20 kB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.3441, allocations: 177.2 kB / 0.8453 GB, free: 15.85 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.3454, allocations: 1.139 MB / 0.8464 GB, free: 14.34 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005866/0.346, allocations: 302.8 kB / 0.8467 GB, free: 14.05 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.346, allocations: 8 kB / 0.8467 GB, free: 14.04 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001385/0.3474, allocations: 0.6345 MB / 0.8474 GB, free: 13.4 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003371/0.3478, allocations: 0.806 MB / 0.8481 GB, free: 12.53 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3478, allocations: 3.984 kB / 0.8481 GB, free: 12.53 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.813e-05/0.3478, allocations: 8 kB / 0.8482 GB, free: 12.52 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.3493, allocations: 239.7 kB / 0.8484 GB, free: 12.29 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.3513, allocations: 2.957 MB / 0.8513 GB, free: 9.211 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003487/0.3548, allocations: 0.7534 MB / 0.852 GB, free: 8.453 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.162e-05/0.3549, allocations: 27.98 kB / 0.852 GB, free: 8.426 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.3549, allocations: 4 kB / 0.852 GB, free: 8.422 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.356, allocations: 0.5012 MB / 0.8525 GB, free: 7.922 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.356, allocations: 0 / 0.8525 GB, free: 7.922 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.356, allocations: 12.19 kB / 0.8525 GB, free: 7.91 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006669/0.3567, allocations: 159.8 kB / 0.8527 GB, free: 7.754 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3567, allocations: 4 kB / 0.8527 GB, free: 7.75 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003365/0.3601, allocations: 0.7339 MB / 0.8534 GB, free: 7.016 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.705e-05/0.3602, allocations: 27.98 kB / 0.8534 GB, free: 6.988 MB / 0.67 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.0006262/0.3608, allocations: 333.9 kB / 0.8538 GB, free: 6.652 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.3611, allocations: 98.77 kB / 0.8538 GB, free: 6.555 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.3623, allocations: 0.5168 MB / 0.8544 GB, free: 6.031 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.3623, allocations: 8 kB / 0.8544 GB, free: 6.023 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3623, allocations: 3.984 kB / 0.8544 GB, free: 6.02 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3623, allocations: 0 / 0.8544 GB, free: 6.02 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002435/0.3648, allocations: 1.268 MB / 0.8556 GB, free: 4.684 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.3648, allocations: 4 kB / 0.8556 GB, free: 4.68 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005411/0.3654, allocations: 119.8 kB / 0.8557 GB, free: 4.562 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.3654, allocations: 4 kB / 0.8557 GB, free: 4.559 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.3654, allocations: 8.125 kB / 0.8557 GB, free: 4.551 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.367, allocations: 2.95 MB / 0.8586 GB, free: 1.484 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.367, allocations: 0 / 0.8586 GB, free: 1.484 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009118/0.3679, allocations: 0.6339 MB / 0.8592 GB, free: 0.8008 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003738/0.3683, allocations: 215.7 kB / 0.8594 GB, free: 0.5703 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.3685, allocations: 8 kB / 0.8594 GB, free: 0.5625 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.369, allocations: 63.78 kB / 0.8595 GB, free: 0.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.592e-05/0.3691, allocations: 31.97 kB / 0.8595 GB, free: 480 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.3692, allocations: 15.98 kB / 0.8596 GB, free: 464 kB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008744/0.3701, allocations: 0.5845 MB / 0.8601 GB, free: 15.86 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3701, allocations: 3.938 kB / 0.8601 GB, free: 15.86 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001726/0.3718, allocations: 0.5381 MB / 0.8607 GB, free: 15.32 MB / 0.6856 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.002072/0.3739, allocations: 1.654 MB / 0.8623 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002664/0.3766, allocations: 0.8429 MB / 0.8631 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3766, allocations: 0 / 0.8631 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0006435/0.3773, allocations: 249.1 kB / 0.8633 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.38, allocations: 486.4 kB / 0.8638 GB, free: 12.06 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005081/0.3851, allocations: 3.514 MB / 0.8672 GB, free: 8.441 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008511/0.386, allocations: 1.042 MB / 0.8682 GB, free: 7.367 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.00132/0.3874, allocations: 215.1 kB / 0.8684 GB, free: 7.152 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005306/0.3879, allocations: 367.3 kB / 0.8688 GB, free: 6.793 MB / 0.6856 GB Notification: Performance of SimCode: time 1.563e-06/0.3879, allocations: 0 / 0.8688 GB, free: 6.793 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05777/0.4457, allocations: 31.85 MB / 0.8999 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.446, allocations: 251.3 kB / 0.9001 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.937/3.383, allocations: 0 / 0.9001 GB, free: 7.266 MB / 0.7169 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: