Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",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.649/2.649, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.00109/0.00109, allocations: 176.9 kB / 492.3 MB, free: 0.5977 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.671/1.671, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009898/0.0009894, allocations: 91.11 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.529e-05/3.542e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3028, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.263/1.566, allocations: 394.9 MB / 1.598 GB, free: 2.992 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/1.566, allocations: 94 kB / 1.598 GB, free: 2.941 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.357/2.923, allocations: 240.7 MB / 1.833 GB, free: 364.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.352e-06/2.923, allocations: 2.875 kB / 1.833 GB, free: 364.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.135e-05/2.923, allocations: 22.62 kB / 1.833 GB, free: 364.7 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002289/2.925, allocations: 0.9694 MB / 1.834 GB, free: 363.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/2.925, allocations: 7.812 kB / 1.834 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001818/2.926, allocations: 86.23 kB / 1.834 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/2.926, allocations: 89.33 kB / 1.834 GB, free: 363.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/2.927, allocations: 0.5108 MB / 1.835 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/2.927, allocations: 45.72 kB / 1.835 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.539e-05/2.927, allocations: 55.25 kB / 1.835 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008286/2.928, allocations: 0.5668 MB / 1.836 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/2.928, allocations: 3.938 kB / 1.836 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.583e-05/2.928, allocations: 18.81 kB / 1.836 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/2.928, allocations: 11.81 kB / 1.836 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00064/2.929, allocations: 405.8 kB / 1.836 GB, free: 362.8 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.003333/2.932, allocations: 3.207 MB / 1.839 GB, free: 359.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/2.932, allocations: 285.2 kB / 1.839 GB, free: 359.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/2.933, allocations: 183.2 kB / 1.84 GB, free: 359.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003191/2.933, allocations: 354 kB / 1.84 GB, free: 359.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/2.933, allocations: 42.5 kB / 1.84 GB, free: 359.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=38): time 3.095e-06/2.933, allocations: 0 / 1.84 GB, free: 359.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=38): time 0.0008562/2.934, allocations: 420.1 kB / 1.84 GB, free: 359 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/2.934, allocations: 59.81 kB / 1.84 GB, free: 358.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005635/2.935, allocations: 0.5036 MB / 1.841 GB, free: 358.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/2.935, allocations: 37.64 kB / 1.841 GB, free: 358.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/2.935, allocations: 326.3 kB / 1.841 GB, free: 358.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.738e-05/2.935, allocations: 137.5 kB / 1.841 GB, free: 358.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.827e-05/2.935, allocations: 12 kB / 1.841 GB, free: 358.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.952e-05/2.935, allocations: 370.2 kB / 1.842 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/2.935, allocations: 161.4 kB / 1.842 GB, free: 357.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/2.936, allocations: 358.9 kB / 1.842 GB, free: 357.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/2.936, allocations: 203.1 kB / 1.842 GB, free: 357.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/2.936, allocations: 0 / 1.842 GB, free: 357.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009786/2.937, allocations: 0.6142 MB / 1.843 GB, free: 357.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003941/2.937, allocations: 1.756 MB / 1.845 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/2.937, allocations: 3.344 kB / 1.845 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005781/2.938, allocations: 129.1 kB / 1.845 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006559/2.939, allocations: 158.5 kB / 1.845 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004859/2.939, allocations: 0.6199 MB / 1.846 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007329/2.94, allocations: 112.1 kB / 1.846 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.499e-05/2.94, allocations: 34.11 kB / 1.846 GB, free: 354.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/2.94, allocations: 3.906 kB / 1.846 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008444/2.941, allocations: 0.5151 MB / 1.846 GB, free: 354.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/2.941, allocations: 7.891 kB / 1.846 GB, free: 354.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/2.941, allocations: 7.812 kB / 1.846 GB, free: 354.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005599/2.941, allocations: 159.1 kB / 1.846 GB, free: 354.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/2.942, allocations: 18.61 kB / 1.846 GB, free: 354.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/2.942, allocations: 92.28 kB / 1.847 GB, free: 354.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/2.942, allocations: 35.61 kB / 1.847 GB, free: 354.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001678/2.942, allocations: 143.8 kB / 1.847 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/2.943, allocations: 62.44 kB / 1.847 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/2.944, allocations: 0.5648 MB / 1.847 GB, free: 353.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/2.944, allocations: 3.688 kB / 1.847 GB, free: 353.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/2.944, allocations: 0 / 1.847 GB, free: 353.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/2.944, allocations: 0 / 1.847 GB, free: 353.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002047/2.946, allocations: 1.279 MB / 1.849 GB, free: 352.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/2.946, allocations: 0 / 1.849 GB, free: 352.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003427/2.946, allocations: 93.47 kB / 1.849 GB, free: 352.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003717/2.947, allocations: 116.5 kB / 1.849 GB, free: 352.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/2.947, allocations: 17.77 kB / 1.849 GB, free: 352.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004444/2.947, allocations: 0.6275 MB / 1.849 GB, free: 352.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.947, allocations: 0 / 1.849 GB, free: 352.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008473/2.948, allocations: 0.6467 MB / 1.85 GB, free: 351.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/2.948, allocations: 202.9 kB / 1.85 GB, free: 351.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/2.948, allocations: 11.69 kB / 1.85 GB, free: 351.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/2.949, allocations: 58.31 kB / 1.85 GB, free: 351.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/2.949, allocations: 38.28 kB / 1.85 GB, free: 351.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.005e-05/2.949, allocations: 18.84 kB / 1.85 GB, free: 351.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0004294/2.949, allocations: 393.7 kB / 1.851 GB, free: 351.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.8e-07/2.949, allocations: 0 / 1.851 GB, free: 351.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001368/2.951, allocations: 421.3 kB / 1.851 GB, free: 351.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00193/2.953, allocations: 1.716 MB / 1.853 GB, free: 349.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001508/2.954, allocations: 0.7567 MB / 1.854 GB, free: 349.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/2.954, allocations: 0 / 1.854 GB, free: 349.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000493/2.955, allocations: 255.1 kB / 1.854 GB, free: 349.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/2.956, allocations: 259.2 kB / 1.854 GB, free: 349.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/2.959, allocations: 0.9485 MB / 1.855 GB, free: 348.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/2.959, allocations: 0.9221 MB / 1.856 GB, free: 347.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0008215/2.96, allocations: 176.9 kB / 1.856 GB, free: 347.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000285/2.96, allocations: 232.9 kB / 1.856 GB, free: 347.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.122e-06/2.96, allocations: 3.688 kB / 1.856 GB, free: 347.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0454/3.006, allocations: 20.37 MB / 1.876 GB, free: 330.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/3.006, allocations: 252.2 kB / 1.876 GB, free: 330.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.086/6.091, allocations: 3.938 kB / 1.876 GB, free: 330.4 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat does not exist to compare? outputFormat=mat