Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.239/2.239, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001091/0.001091, allocations: 176.9 kB / 487.4 MB, free: 5.059 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.606/1.606, allocations: 221.5 MB / 0.7824 GB, free: 0.9609 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 95.91 kB / 0.9219 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.136e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2747, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.15/1.425, allocations: 398.7 MB / 1.595 GB, free: 7.223 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/1.425, allocations: 92.02 kB / 1.596 GB, free: 7.176 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.534/2.959, allocations: 434.3 MB / 2.02 GB, free: 187.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.733e-06/2.959, allocations: 0 / 2.02 GB, free: 187.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.699e-05/2.959, allocations: 35.98 kB / 2.02 GB, free: 187.6 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.002226/2.961, allocations: 1.333 MB / 2.021 GB, free: 186.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/2.961, allocations: 12.03 kB / 2.021 GB, free: 186.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002804/2.962, allocations: 150.5 kB / 2.021 GB, free: 186.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/2.963, allocations: 0.8252 MB / 2.022 GB, free: 185.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/2.963, allocations: 20 kB / 2.022 GB, free: 185.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/2.963, allocations: 80 kB / 2.022 GB, free: 185.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005966/2.964, allocations: 394.5 kB / 2.022 GB, free: 184.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006877/2.964, allocations: 0.516 MB / 2.023 GB, free: 184.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/2.964, allocations: 0 / 2.023 GB, free: 184.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/2.965, allocations: 3.953 kB / 2.023 GB, free: 184.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/2.965, allocations: 20 kB / 2.023 GB, free: 184.2 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.00375/2.968, allocations: 2.906 MB / 2.026 GB, free: 181.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/2.969, allocations: 310 kB / 2.026 GB, free: 180.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/2.969, allocations: 137.4 kB / 2.026 GB, free: 180.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002533/2.969, allocations: 344.7 kB / 2.027 GB, free: 180.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.526e-05/2.969, allocations: 34.84 kB / 2.027 GB, free: 180.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.084e-06/2.969, allocations: 0 / 2.027 GB, free: 180.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.00119/2.97, allocations: 482.8 kB / 2.027 GB, free: 179.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.19e-05/2.97, allocations: 63.34 kB / 2.027 GB, free: 179.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005934/2.971, allocations: 0.6361 MB / 2.028 GB, free: 179 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/2.971, allocations: 41.64 kB / 2.028 GB, free: 179 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/2.971, allocations: 0.5359 MB / 2.028 GB, free: 178.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/2.972, allocations: 118.2 kB / 2.028 GB, free: 178.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/2.972, allocations: 0 / 2.028 GB, free: 178.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.028e-05/2.972, allocations: 330 kB / 2.029 GB, free: 178 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/2.972, allocations: 157.5 kB / 2.029 GB, free: 177.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009494/2.973, allocations: 1.358 MB / 2.03 GB, free: 176.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/2.974, allocations: 376.7 kB / 2.031 GB, free: 175.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/2.974, allocations: 4 kB / 2.031 GB, free: 175.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001252/2.975, allocations: 0.6501 MB / 2.031 GB, free: 175 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001429/2.975, allocations: 0.8173 MB / 2.032 GB, free: 174.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/2.975, allocations: 4 kB / 2.032 GB, free: 174.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/2.975, allocations: 4 kB / 2.032 GB, free: 174.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/2.976, allocations: 211.6 kB / 2.032 GB, free: 173.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/2.977, allocations: 2.977 MB / 2.035 GB, free: 170.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/2.981, allocations: 0.8748 MB / 2.036 GB, free: 170 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/2.981, allocations: 27.98 kB / 2.036 GB, free: 169.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/2.981, allocations: 4 kB / 2.036 GB, free: 169.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001067/2.982, allocations: 497.1 kB / 2.036 GB, free: 169.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/2.982, allocations: 4 kB / 2.036 GB, free: 169.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.625e-06/2.982, allocations: 4 kB / 2.036 GB, free: 169.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006145/2.983, allocations: 155.8 kB / 2.037 GB, free: 169.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/2.983, allocations: 4 kB / 2.037 GB, free: 169.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/2.986, allocations: 0.8632 MB / 2.037 GB, free: 168.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/2.986, allocations: 35.92 kB / 2.038 GB, free: 168.4 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.0002391/2.986, allocations: 134.1 kB / 2.038 GB, free: 168.2 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009878/2.987, allocations: 440.2 kB / 2.038 GB, free: 167.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.495e-05/2.987, allocations: 86.88 kB / 2.038 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/2.989, allocations: 0.5296 MB / 2.039 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/2.989, allocations: 8 kB / 2.039 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/2.989, allocations: 7.953 kB / 2.039 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/2.989, allocations: 3.984 kB / 2.039 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/2.991, allocations: 1.209 MB / 2.04 GB, free: 165.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/2.991, allocations: 0 / 2.04 GB, free: 165.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/2.991, allocations: 131.9 kB / 2.04 GB, free: 165.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.381e-06/2.991, allocations: 7.891 kB / 2.04 GB, free: 165.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/2.991, allocations: 8 kB / 2.04 GB, free: 165.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008303/2.992, allocations: 2.938 MB / 2.043 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/2.992, allocations: 8.016 kB / 2.043 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009938/2.993, allocations: 0.6659 MB / 2.044 GB, free: 162 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/2.993, allocations: 215.8 kB / 2.044 GB, free: 161.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.055e-05/2.993, allocations: 4 kB / 2.044 GB, free: 161.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005366/2.994, allocations: 59.86 kB / 2.044 GB, free: 161.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.216e-05/2.994, allocations: 27.97 kB / 2.044 GB, free: 161.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/2.994, allocations: 19.98 kB / 2.044 GB, free: 161.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0004949/2.995, allocations: 484.6 kB / 2.044 GB, free: 161.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.51e-07/2.995, allocations: 0 / 2.044 GB, free: 161.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001905/2.997, allocations: 0.5927 MB / 2.045 GB, free: 160.6 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.001989/2.999, allocations: 1.854 MB / 2.047 GB, free: 158.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002071/3.001, allocations: 0.7444 MB / 2.047 GB, free: 157.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/3.001, allocations: 0 / 2.047 GB, free: 157.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003798/3.001, allocations: 191.8 kB / 2.048 GB, free: 157.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/3.003, allocations: 391.8 kB / 2.048 GB, free: 157.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/3.006, allocations: 1.255 MB / 2.049 GB, free: 156 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/3.006, allocations: 1.055 MB / 2.05 GB, free: 154.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001228/3.007, allocations: 253.1 kB / 2.05 GB, free: 154.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/3.008, allocations: 343.3 kB / 2.051 GB, free: 154.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.172e-06/3.008, allocations: 8 kB / 2.051 GB, free: 154.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05541/3.063, allocations: 32.11 MB / 2.082 GB, free: 122.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/3.063, allocations: 181.8 kB / 2.082 GB, free: 122.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.349/6.412, allocations: 0 / 2.082 GB, free: 122.4 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat does not exist to compare? outputFormat=mat