Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.41/2.41, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009853/0.0009853, allocations: 176.3 kB / 491.2 MB, free: 1.59 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.61/1.61, allocations: 221.5 MB / 0.7868 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009355/0.0009358, allocations: 106.3 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.061e-05, allocations: 7.984 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3037, allocations: 143 MB / 1.212 GB, free: 39.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.226/1.53, allocations: 399.5 MB / 1.603 GB, free: 14.52 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/1.531, allocations: 94 kB / 1.603 GB, free: 14.47 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.676/3.207, allocations: 434.3 MB / 2.027 GB, free: 176 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.163e-06/3.207, allocations: 192 / 2.027 GB, free: 176 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.868e-05/3.207, allocations: 39.92 kB / 2.027 GB, free: 176 MB / 1.151 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.002216/3.209, allocations: 1.329 MB / 2.028 GB, free: 174.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/3.209, allocations: 8.562 kB / 2.028 GB, free: 174.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/3.21, allocations: 154.4 kB / 2.028 GB, free: 174.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/3.211, allocations: 0.8252 MB / 2.029 GB, free: 173.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/3.211, allocations: 16 kB / 2.029 GB, free: 173.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/3.211, allocations: 80 kB / 2.029 GB, free: 173.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005958/3.212, allocations: 386.5 kB / 2.03 GB, free: 173.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006906/3.212, allocations: 0.516 MB / 2.03 GB, free: 172.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/3.213, allocations: 11.88 kB / 2.03 GB, free: 172.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.908e-05/3.213, allocations: 3.938 kB / 2.03 GB, free: 172.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/3.213, allocations: 16 kB / 2.03 GB, free: 172.5 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003687/3.216, allocations: 2.906 MB / 2.033 GB, free: 169.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/3.217, allocations: 307.5 kB / 2.033 GB, free: 169.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/3.217, allocations: 133.4 kB / 2.033 GB, free: 169 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002544/3.217, allocations: 352.6 kB / 2.034 GB, free: 168.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/3.217, allocations: 38.84 kB / 2.034 GB, free: 168.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.464e-06/3.217, allocations: 0 / 2.034 GB, free: 168.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001251/3.218, allocations: 482.7 kB / 2.034 GB, free: 168.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/3.218, allocations: 59.41 kB / 2.034 GB, free: 168 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006222/3.219, allocations: 0.6439 MB / 2.035 GB, free: 167.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001116/3.219, allocations: 33.7 kB / 2.035 GB, free: 167.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/3.22, allocations: 0.5403 MB / 2.035 GB, free: 166.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.549e-05/3.22, allocations: 106.3 kB / 2.036 GB, free: 166.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/3.22, allocations: 0 / 2.036 GB, free: 166.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.482e-05/3.22, allocations: 334 kB / 2.036 GB, free: 166.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/3.22, allocations: 149.5 kB / 2.036 GB, free: 166.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/3.221, allocations: 1.366 MB / 2.037 GB, free: 164.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000826/3.222, allocations: 388.5 kB / 2.038 GB, free: 164 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/3.222, allocations: 0 / 2.038 GB, free: 164 MB / 1.151 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001286/3.223, allocations: 0.6462 MB / 2.038 GB, free: 163.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001718/3.223, allocations: 0.8076 MB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/3.223, allocations: 3.984 kB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/3.223, allocations: 8 kB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/3.225, allocations: 215.6 kB / 2.039 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/3.226, allocations: 2.981 MB / 2.042 GB, free: 159.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/3.229, allocations: 0.8748 MB / 2.043 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.017e-05/3.229, allocations: 27.98 kB / 2.043 GB, free: 158.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/3.229, allocations: 4 kB / 2.043 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001089/3.23, allocations: 489 kB / 2.044 GB, free: 157.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/3.23, allocations: 0 / 2.044 GB, free: 157.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.386e-06/3.23, allocations: 12.19 kB / 2.044 GB, free: 157.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/3.231, allocations: 159.8 kB / 2.044 GB, free: 157.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/3.231, allocations: 8 kB / 2.044 GB, free: 157.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003347/3.234, allocations: 0.8631 MB / 2.045 GB, free: 156.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.103e-05/3.234, allocations: 31.98 kB / 2.045 GB, free: 156.7 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * 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.0002761/3.235, allocations: 135 kB / 2.045 GB, free: 156.6 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001048/3.236, allocations: 432.2 kB / 2.045 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.635e-05/3.236, allocations: 86.88 kB / 2.045 GB, free: 156.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/3.237, allocations: 0.533 MB / 2.046 GB, free: 155.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/3.237, allocations: 12.12 kB / 2.046 GB, free: 155.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/3.237, allocations: 0 / 2.046 GB, free: 155.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/3.237, allocations: 7.984 kB / 2.046 GB, free: 155.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/3.239, allocations: 1.216 MB / 2.047 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/3.239, allocations: 7.953 kB / 2.047 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/3.24, allocations: 123.9 kB / 2.047 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/3.24, allocations: 8 kB / 2.047 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/3.24, allocations: 7.984 kB / 2.047 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007583/3.24, allocations: 2.95 MB / 2.05 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/3.24, allocations: 0 / 2.05 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009172/3.241, allocations: 0.6518 MB / 2.051 GB, free: 150.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/3.242, allocations: 223.7 kB / 2.051 GB, free: 150.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.822e-05/3.242, allocations: 3.938 kB / 2.051 GB, free: 150.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/3.242, allocations: 63.86 kB / 2.051 GB, free: 150 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/3.242, allocations: 31.89 kB / 2.051 GB, free: 150 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/3.242, allocations: 19.95 kB / 2.051 GB, free: 150 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00047/3.243, allocations: 484.6 kB / 2.051 GB, free: 149.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/3.243, allocations: 4 kB / 2.051 GB, free: 149.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001834/3.245, allocations: 0.5851 MB / 2.052 GB, free: 148.9 MB / 1.151 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 () * 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.002028/3.247, allocations: 1.846 MB / 2.054 GB, free: 147 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002065/3.249, allocations: 0.7484 MB / 2.055 GB, free: 146.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/3.249, allocations: 0 / 2.055 GB, free: 146.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003753/3.249, allocations: 191.8 kB / 2.055 GB, free: 146.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/3.251, allocations: 392.9 kB / 2.055 GB, free: 145.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/3.254, allocations: 1.252 MB / 2.056 GB, free: 144.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/3.254, allocations: 1.047 MB / 2.057 GB, free: 143.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001147/3.255, allocations: 245.2 kB / 2.058 GB, free: 143.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/3.256, allocations: 351.3 kB / 2.058 GB, free: 142.7 MB / 1.151 GB Notification: Performance of SimCode: time 4.31e-07/3.256, allocations: 0 / 2.058 GB, free: 142.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05641/3.312, allocations: 32.13 MB / 2.089 GB, free: 111 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/3.312, allocations: 182.2 kB / 2.089 GB, free: 110.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.275/6.587, allocations: 3.938 kB / 2.089 GB, free: 110.8 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat does not exist to compare? outputFormat=mat