Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7634/0.7634, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009674/0.0009674, allocations: 185.9 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 221.3 MB / 441.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009333/0.0009333, allocations: 98.88 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001686/0.001686, allocations: 279.3 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.966e-05/3.978e-05, allocations: 8 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4101/0.4102, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7107/1.121, allocations: 354.3 MB / 1.11 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/1.121, allocations: 92.7 kB / 1.11 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.8015/1.923, allocations: 240.8 MB / 1.346 GB, free: 118 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.713e-06/1.923, allocations: 4 kB / 1.346 GB, free: 117.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.93e-05/1.923, allocations: 20 kB / 1.346 GB, free: 117.9 MB / 0.698 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.001489/1.924, allocations: 0.9694 MB / 1.346 GB, free: 116.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/1.924, allocations: 12.03 kB / 1.346 GB, free: 116.9 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.781e-05/1.924, allocations: 86.52 kB / 1.347 GB, free: 116.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/1.925, allocations: 83.06 kB / 1.347 GB, free: 116.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007186/1.925, allocations: 0.5111 MB / 1.347 GB, free: 116.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/1.925, allocations: 41 kB / 1.347 GB, free: 116.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/1.925, allocations: 52 kB / 1.347 GB, free: 116.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/1.926, allocations: 0.5627 MB / 1.348 GB, free: 115.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/1.926, allocations: 0 / 1.348 GB, free: 115.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/1.926, allocations: 24 kB / 1.348 GB, free: 115.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/1.926, allocations: 15.95 kB / 1.348 GB, free: 115.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005226/1.927, allocations: 398.8 kB / 1.348 GB, free: 115 MB / 0.698 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.002612/1.929, allocations: 3.22 MB / 1.351 GB, free: 111.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/1.93, allocations: 288 kB / 1.352 GB, free: 111.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/1.93, allocations: 184.8 kB / 1.352 GB, free: 111.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002433/1.93, allocations: 348.4 kB / 1.352 GB, free: 110.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/1.93, allocations: 34.56 kB / 1.352 GB, free: 110.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=38): time 1.863e-06/1.93, allocations: 0 / 1.352 GB, free: 110.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=38): time 0.0007016/1.931, allocations: 425.5 kB / 1.353 GB, free: 110.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/1.931, allocations: 59.34 kB / 1.353 GB, free: 110.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/1.931, allocations: 0.5035 MB / 1.353 GB, free: 109.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/1.931, allocations: 37.7 kB / 1.353 GB, free: 109.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/1.932, allocations: 328.4 kB / 1.353 GB, free: 109.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.443e-05/1.932, allocations: 134.1 kB / 1.354 GB, free: 109.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/1.932, allocations: 12 kB / 1.354 GB, free: 109.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.461e-05/1.932, allocations: 374.7 kB / 1.354 GB, free: 108.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002477/1.932, allocations: 161.5 kB / 1.354 GB, free: 108.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/1.932, allocations: 341.7 kB / 1.354 GB, free: 108.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/1.933, allocations: 209.5 kB / 1.355 GB, free: 108 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/1.933, allocations: 3.938 kB / 1.355 GB, free: 108 MB / 0.698 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008036/1.933, allocations: 0.6091 MB / 1.355 GB, free: 107.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002783/1.934, allocations: 1.752 MB / 1.357 GB, free: 105.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/1.934, allocations: 7.984 kB / 1.357 GB, free: 105.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005347/1.934, allocations: 136.7 kB / 1.357 GB, free: 105.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006118/1.935, allocations: 163.8 kB / 1.357 GB, free: 105.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004263/1.935, allocations: 0.607 MB / 1.358 GB, free: 104.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006536/1.936, allocations: 111.3 kB / 1.358 GB, free: 104.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.825e-05/1.936, allocations: 36.06 kB / 1.358 GB, free: 104.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.958e-06/1.936, allocations: 9.562 kB / 1.358 GB, free: 104.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006909/1.937, allocations: 0.5057 MB / 1.358 GB, free: 103.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/1.937, allocations: 8.562 kB / 1.359 GB, free: 103.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.155e-06/1.937, allocations: 12 kB / 1.359 GB, free: 103.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/1.937, allocations: 167.7 kB / 1.359 GB, free: 103.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/1.937, allocations: 7.953 kB / 1.359 GB, free: 103.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/1.938, allocations: 99.47 kB / 1.359 GB, free: 103.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/1.938, allocations: 31.98 kB / 1.359 GB, free: 103.6 MB / 0.698 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.0001128/1.938, allocations: 136.8 kB / 1.359 GB, free: 103.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.866e-05/1.938, allocations: 71.16 kB / 1.359 GB, free: 103.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009103/1.939, allocations: 0.5574 MB / 1.36 GB, free: 102.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/1.939, allocations: 8.141 kB / 1.36 GB, free: 102.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/1.939, allocations: 0 / 1.36 GB, free: 102.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/1.939, allocations: 11.92 kB / 1.36 GB, free: 102.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/1.941, allocations: 1.27 MB / 1.361 GB, free: 101.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.941, allocations: 0 / 1.361 GB, free: 101.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/1.941, allocations: 95.97 kB / 1.361 GB, free: 101.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003178/1.941, allocations: 104.8 kB / 1.361 GB, free: 101.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/1.942, allocations: 19.98 kB / 1.361 GB, free: 101.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003871/1.942, allocations: 0.6225 MB / 1.362 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.942, allocations: 7.969 kB / 1.362 GB, free: 100.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007228/1.943, allocations: 0.6472 MB / 1.362 GB, free: 99.86 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001998/1.943, allocations: 200 kB / 1.362 GB, free: 99.65 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/1.943, allocations: 12 kB / 1.362 GB, free: 99.64 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004274/1.943, allocations: 71.72 kB / 1.363 GB, free: 99.57 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/1.943, allocations: 31.95 kB / 1.363 GB, free: 99.54 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/1.944, allocations: 19.94 kB / 1.363 GB, free: 99.52 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003579/1.944, allocations: 391.2 kB / 1.363 GB, free: 99.14 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/1.944, allocations: 0 / 1.363 GB, free: 99.14 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001097/1.945, allocations: 423.4 kB / 1.363 GB, free: 98.72 MB / 0.698 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.001596/1.947, allocations: 1.711 MB / 1.365 GB, free: 96.98 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001263/1.948, allocations: 0.7655 MB / 1.366 GB, free: 96.21 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.948, allocations: 8.125 kB / 1.366 GB, free: 96.21 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004237/1.948, allocations: 251.7 kB / 1.366 GB, free: 95.96 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/1.95, allocations: 249.6 kB / 1.366 GB, free: 95.72 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/1.951, allocations: 0.9301 MB / 1.367 GB, free: 94.74 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/1.951, allocations: 0.9286 MB / 1.368 GB, free: 93.79 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006695/1.952, allocations: 192.6 kB / 1.368 GB, free: 93.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/1.952, allocations: 235.3 kB / 1.368 GB, free: 93.37 MB / 0.698 GB Notification: Performance of SimCode: time 1.112e-06/1.952, allocations: 0 / 1.368 GB, free: 93.37 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03181/1.984, allocations: 20.38 MB / 1.388 GB, free: 73.31 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/1.984, allocations: 256.9 kB / 1.389 GB, free: 72.97 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/4.509, allocations: 0 / 1.389 GB, free: 72.97 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)