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.313/2.313, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001076/0.001076, allocations: 176.8 kB / 487.4 MB, free: 5.043 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.439/1.439, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 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.0008601/0.0008603, allocations: 93.56 kB / 0.9219 GB, free: 2.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.886e-05/1.889e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2715, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.302, allocations: 394.2 MB / 1.591 GB, free: 11.32 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/1.302, allocations: 92.69 kB / 1.591 GB, free: 11.27 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.075/2.378, allocations: 238.9 MB / 1.824 GB, free: 371.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.803e-06/2.378, allocations: 0 / 1.824 GB, free: 371.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 4.538e-05/2.378, allocations: 21.64 kB / 1.824 GB, free: 371.1 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.001467/2.379, allocations: 0.9772 MB / 1.825 GB, free: 370.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/2.379, allocations: 7.344 kB / 1.825 GB, free: 370.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/2.379, allocations: 84.2 kB / 1.825 GB, free: 370.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/2.38, allocations: 0.5134 MB / 1.826 GB, free: 370 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/2.38, allocations: 14 kB / 1.826 GB, free: 370 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/2.38, allocations: 35.31 kB / 1.826 GB, free: 370 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005314/2.381, allocations: 355.7 kB / 1.826 GB, free: 369.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/2.381, allocations: 0.5081 MB / 1.827 GB, free: 369.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/2.381, allocations: 0 / 1.827 GB, free: 369.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/2.381, allocations: 3.938 kB / 1.827 GB, free: 369.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/2.381, allocations: 14.62 kB / 1.827 GB, free: 369.6 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.002637/2.384, allocations: 3.112 MB / 1.83 GB, free: 367 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/2.384, allocations: 285.7 kB / 1.83 GB, free: 366.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000219/2.385, allocations: 174.4 kB / 1.83 GB, free: 366.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002439/2.385, allocations: 353.8 kB / 1.831 GB, free: 366.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/2.385, allocations: 38.59 kB / 1.831 GB, free: 366.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=38): time 1.393e-06/2.385, allocations: 0 / 1.831 GB, free: 366.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=38): time 0.001961/2.387, allocations: 0.6665 MB / 1.831 GB, free: 366 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/2.387, allocations: 59.25 kB / 1.831 GB, free: 365.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/2.387, allocations: 443.1 kB / 1.832 GB, free: 365.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/2.387, allocations: 25.7 kB / 1.832 GB, free: 365.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/2.388, allocations: 336.4 kB / 1.832 GB, free: 365.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.562e-05/2.388, allocations: 121.2 kB / 1.832 GB, free: 365.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/2.388, allocations: 0 / 1.832 GB, free: 365.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.177e-05/2.388, allocations: 368.5 kB / 1.833 GB, free: 364.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/2.388, allocations: 153 kB / 1.833 GB, free: 364.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/2.388, allocations: 337.5 kB / 1.833 GB, free: 364.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/2.39, allocations: 425.4 kB / 1.834 GB, free: 364.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/2.39, allocations: 3.938 kB / 1.834 GB, free: 364.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001878/2.392, allocations: 0.7948 MB / 1.834 GB, free: 363.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003402/2.392, allocations: 1.747 MB / 1.836 GB, free: 362 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/2.392, allocations: 3.594 kB / 1.836 GB, free: 362 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003788/2.392, allocations: 106.2 kB / 1.836 GB, free: 362 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/2.393, allocations: 139.8 kB / 1.836 GB, free: 362 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008136/2.394, allocations: 0.7058 MB / 1.837 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006254/2.394, allocations: 94.06 kB / 1.837 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.498e-05/2.394, allocations: 29.7 kB / 1.837 GB, free: 361.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.928e-06/2.394, allocations: 9.672 kB / 1.837 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001693/2.396, allocations: 0.6714 MB / 1.838 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/2.396, allocations: 11.17 kB / 1.838 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/2.396, allocations: 6.781 kB / 1.838 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005571/2.397, allocations: 157.9 kB / 1.838 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/2.397, allocations: 11.75 kB / 1.838 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/2.397, allocations: 72.34 kB / 1.838 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/2.397, allocations: 30.17 kB / 1.838 GB, free: 360.9 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 (64): * Single equations (assignments): 63 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001289/2.397, allocations: 116.6 kB / 1.838 GB, free: 360.8 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001584/2.399, allocations: 0.6353 MB / 1.839 GB, free: 360.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.41e-05/2.399, allocations: 61.56 kB / 1.839 GB, free: 360.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/2.401, allocations: 0.7592 MB / 1.84 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/2.401, allocations: 7.906 kB / 1.84 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/2.401, allocations: 7.875 kB / 1.84 GB, free: 359.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/2.401, allocations: 0 / 1.84 GB, free: 359.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/2.404, allocations: 1.423 MB / 1.841 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/2.404, allocations: 3.062 kB / 1.841 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003486/2.404, allocations: 94.75 kB / 1.841 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003243/2.405, allocations: 111 kB / 1.841 GB, free: 358.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/2.405, allocations: 11.56 kB / 1.841 GB, free: 358.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007395/2.405, allocations: 0.6895 MB / 1.842 GB, free: 358.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/2.405, allocations: 3.984 kB / 1.842 GB, free: 358.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/2.407, allocations: 0.8726 MB / 1.843 GB, free: 357.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/2.408, allocations: 191.8 kB / 1.843 GB, free: 357.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/2.408, allocations: 3.953 kB / 1.843 GB, free: 357.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00046/2.408, allocations: 57.5 kB / 1.843 GB, free: 357.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.799e-05/2.408, allocations: 34.02 kB / 1.843 GB, free: 357.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/2.408, allocations: 15.62 kB / 1.843 GB, free: 357.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003655/2.409, allocations: 339.2 kB / 1.843 GB, free: 357.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/2.409, allocations: 0 / 1.843 GB, free: 357.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001407/2.41, allocations: 388.7 kB / 1.844 GB, free: 357.2 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.002942/2.413, allocations: 1.923 MB / 1.846 GB, free: 355.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001383/2.414, allocations: 0.708 MB / 1.846 GB, free: 355.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/2.414, allocations: 0 / 1.846 GB, free: 355.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000454/2.415, allocations: 241.3 kB / 1.846 GB, free: 355.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/2.416, allocations: 230.6 kB / 1.847 GB, free: 355.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/2.418, allocations: 0.8998 MB / 1.848 GB, free: 354.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/2.418, allocations: 0.9219 MB / 1.848 GB, free: 354 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0006284/2.419, allocations: 165.9 kB / 1.849 GB, free: 353.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/2.419, allocations: 230.8 kB / 1.849 GB, free: 353.7 MB / 1.151 GB Notification: Performance of SimCode: time 2.6e-07/2.419, allocations: 0 / 1.849 GB, free: 353.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03437/2.453, allocations: 17.47 MB / 1.866 GB, free: 344.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/2.453, allocations: 203.5 kB / 1.866 GB, free: 344.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/5.214, allocations: 4.859 kB / 1.866 GB, free: 344.3 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