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.198/2.198, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001257/0.001256, allocations: 172.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.648/1.648, allocations: 221.3 MB / 0.7915 GB, free: 5.449 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.0009692/0.0009692, allocations: 95.75 kB / 0.9317 GB, free: 5.766 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.082e-05/5.091e-05, allocations: 8 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2912, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.167/1.458, allocations: 400.2 MB / 1.61 GB, free: 1.82 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/1.458, allocations: 94.12 kB / 1.61 GB, free: 1.773 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.581/3.039, allocations: 437.8 MB / 2.037 GB, free: 118.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.653e-06/3.039, allocations: 0 / 2.037 GB, free: 118.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001921/3.04, allocations: 39.98 kB / 2.037 GB, free: 118.8 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.00339/3.043, allocations: 1.329 MB / 2.039 GB, free: 117.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/3.043, allocations: 8.031 kB / 2.039 GB, free: 117.4 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002322/3.043, allocations: 102.5 kB / 2.039 GB, free: 117.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006476/3.044, allocations: 146.5 kB / 2.039 GB, free: 117.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002189/3.046, allocations: 0.8174 MB / 2.04 GB, free: 116.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.34e-05/3.046, allocations: 89.23 kB / 2.04 GB, free: 116.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000345/3.047, allocations: 124 kB / 2.04 GB, free: 116.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009677/3.048, allocations: 0.6006 MB / 2.04 GB, free: 115.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/3.048, allocations: 0 / 2.04 GB, free: 115.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/3.048, allocations: 27.94 kB / 2.04 GB, free: 115.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/3.048, allocations: 16 kB / 2.04 GB, free: 115.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006732/3.048, allocations: 417 kB / 2.041 GB, free: 115 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.004953/3.053, allocations: 3.078 MB / 2.044 GB, free: 111.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004418/3.054, allocations: 311.8 kB / 2.044 GB, free: 111.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/3.054, allocations: 133.4 kB / 2.044 GB, free: 111.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/3.054, allocations: 344.7 kB / 2.045 GB, free: 110.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/3.054, allocations: 42.8 kB / 2.045 GB, free: 110.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/3.054, allocations: 0 / 2.045 GB, free: 110.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.0008037/3.055, allocations: 398.6 kB / 2.045 GB, free: 110.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/3.055, allocations: 63.34 kB / 2.045 GB, free: 110.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008197/3.056, allocations: 0.7624 MB / 2.046 GB, free: 109.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001556/3.056, allocations: 57.7 kB / 2.046 GB, free: 109.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/3.057, allocations: 0.5559 MB / 2.046 GB, free: 109 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.361e-05/3.057, allocations: 114.3 kB / 2.047 GB, free: 108.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/3.057, allocations: 15.94 kB / 2.047 GB, free: 108.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.25e-05/3.057, allocations: 330 kB / 2.047 GB, free: 108.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/3.057, allocations: 157.5 kB / 2.047 GB, free: 108.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/3.058, allocations: 1.398 MB / 2.048 GB, free: 106.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004028/3.059, allocations: 301.6 kB / 2.049 GB, free: 106.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/3.059, allocations: 0 / 2.049 GB, free: 106.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009606/3.06, allocations: 0.5993 MB / 2.049 GB, free: 105.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001752/3.06, allocations: 0.8138 MB / 2.05 GB, free: 104.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/3.06, allocations: 4 kB / 2.05 GB, free: 104.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/3.06, allocations: 4.094 kB / 2.05 GB, free: 104.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/3.061, allocations: 203.7 kB / 2.05 GB, free: 104.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/3.062, allocations: 2.961 MB / 2.053 GB, free: 101.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003471/3.066, allocations: 0.9095 MB / 2.054 GB, free: 100.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-05/3.066, allocations: 27.98 kB / 2.054 GB, free: 100.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/3.066, allocations: 4 kB / 2.054 GB, free: 100.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007329/3.067, allocations: 473.1 kB / 2.055 GB, free: 100.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/3.067, allocations: 192 / 2.055 GB, free: 100.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/3.067, allocations: 12 kB / 2.055 GB, free: 100.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/3.067, allocations: 159.7 kB / 2.055 GB, free: 99.98 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/3.067, allocations: 4 kB / 2.055 GB, free: 99.98 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/3.071, allocations: 0.9016 MB / 2.056 GB, free: 99.07 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.342e-05/3.071, allocations: 27.98 kB / 2.056 GB, free: 99.05 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 (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.0003159/3.071, allocations: 167 kB / 2.056 GB, free: 98.88 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/3.071, allocations: 94.78 kB / 2.056 GB, free: 98.79 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/3.072, allocations: 0.498 MB / 2.056 GB, free: 98.29 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/3.072, allocations: 8 kB / 2.056 GB, free: 98.28 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/3.072, allocations: 3.953 kB / 2.056 GB, free: 98.27 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/3.072, allocations: 0 / 2.056 GB, free: 98.27 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/3.074, allocations: 1.245 MB / 2.058 GB, free: 96.96 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/3.074, allocations: 0 / 2.058 GB, free: 96.96 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/3.075, allocations: 119.8 kB / 2.058 GB, free: 96.84 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/3.075, allocations: 4.125 kB / 2.058 GB, free: 96.84 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/3.075, allocations: 16 kB / 2.058 GB, free: 96.82 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008853/3.076, allocations: 2.942 MB / 2.061 GB, free: 93.77 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/3.076, allocations: 0 / 2.061 GB, free: 93.77 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006629/3.077, allocations: 0.6066 MB / 2.061 GB, free: 93.11 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00039/3.077, allocations: 219.7 kB / 2.061 GB, free: 92.88 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/3.077, allocations: 16 kB / 2.061 GB, free: 92.86 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006416/3.078, allocations: 71.77 kB / 2.061 GB, free: 92.79 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/3.078, allocations: 27.92 kB / 2.062 GB, free: 92.76 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/3.078, allocations: 19.98 kB / 2.062 GB, free: 92.74 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006657/3.079, allocations: 0.5858 MB / 2.062 GB, free: 92.14 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/3.079, allocations: 0 / 2.062 GB, free: 92.14 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002025/3.081, allocations: 0.6163 MB / 2.063 GB, free: 91.53 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.001963/3.083, allocations: 1.795 MB / 2.064 GB, free: 89.68 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002221/3.085, allocations: 0.7817 MB / 2.065 GB, free: 88.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/3.085, allocations: 4 kB / 2.065 GB, free: 88.89 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004492/3.085, allocations: 216.3 kB / 2.065 GB, free: 88.68 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/3.088, allocations: 479.4 kB / 2.066 GB, free: 88.21 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/3.091, allocations: 1.31 MB / 2.067 GB, free: 86.85 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/3.092, allocations: 1.055 MB / 2.068 GB, free: 85.77 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001653/3.093, allocations: 278.7 kB / 2.068 GB, free: 85.49 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/3.094, allocations: 347.3 kB / 2.069 GB, free: 85.15 MB / 1.151 GB Notification: Performance of SimCode: time 1.072e-06/3.094, allocations: 0 / 2.069 GB, free: 85.15 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06673/3.161, allocations: 38.54 MB / 2.106 GB, free: 47.17 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/3.161, allocations: 228.4 kB / 2.107 GB, free: 46.93 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.395/6.555, allocations: 0 / 2.107 GB, free: 46.93 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