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.8706/0.8706, allocations: 143.4 MB / 158.3 MB, free: 5.648 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 195.1 kB / 191.5 MB, free: 5.625 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.453/1.453, allocations: 223.2 MB / 447.7 MB, free: 4.82 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.001/0.001, allocations: 88.27 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001838/0.001838, allocations: 277 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004102/0.0004102, allocations: 14.91 kB / 0.693 GB, free: 59.53 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1671, allocations: 82.79 MB / 0.7738 GB, free: 13.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.772/0.9392, allocations: 354.3 MB / 1.12 GB, free: 15.81 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003115/0.9396, allocations: 100.3 kB / 1.12 GB, free: 15.75 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7512/1.691, allocations: 241.4 MB / 1.356 GB, free: 64.82 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.564e-06/1.691, allocations: 3.984 kB / 1.356 GB, free: 64.82 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.943e-05/1.691, allocations: 23.98 kB / 1.356 GB, free: 64.8 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.001808/1.693, allocations: 1.087 MB / 1.357 GB, free: 63.66 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/1.693, allocations: 8.031 kB / 1.357 GB, free: 63.65 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.011e-05/1.693, allocations: 90.45 kB / 1.357 GB, free: 63.55 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/1.693, allocations: 82.97 kB / 1.357 GB, free: 63.47 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007632/1.694, allocations: 0.5306 MB / 1.357 GB, free: 62.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/1.694, allocations: 37 kB / 1.357 GB, free: 62.86 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/1.694, allocations: 56 kB / 1.358 GB, free: 62.81 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008415/1.695, allocations: 0.6216 MB / 1.358 GB, free: 62.12 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/1.695, allocations: 7.938 kB / 1.358 GB, free: 62.11 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/1.695, allocations: 16 kB / 1.358 GB, free: 62.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/1.695, allocations: 15.95 kB / 1.358 GB, free: 62.08 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008845/1.696, allocations: 0.5034 MB / 1.359 GB, free: 61.58 MB / 0.698 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.002589/1.698, allocations: 3.201 MB / 1.362 GB, free: 58.18 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000565/1.699, allocations: 339 kB / 1.362 GB, free: 57.84 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002274/1.699, allocations: 352.4 kB / 1.362 GB, free: 57.42 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/1.699, allocations: 42.56 kB / 1.362 GB, free: 57.37 MB / 0.698 GB Notification: Performance of pre-optimization done (n=38): time 1.773e-06/1.699, allocations: 0 / 1.362 GB, free: 57.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=38): time 0.001714/1.701, allocations: 0.8244 MB / 1.363 GB, free: 56.52 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.347e-05/1.701, allocations: 59.41 kB / 1.363 GB, free: 56.45 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004476/1.701, allocations: 0.5188 MB / 1.364 GB, free: 55.92 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/1.701, allocations: 37.7 kB / 1.364 GB, free: 55.88 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/1.702, allocations: 328.4 kB / 1.364 GB, free: 55.55 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/1.702, allocations: 126.2 kB / 1.364 GB, free: 55.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-05/1.702, allocations: 12 kB / 1.364 GB, free: 55.41 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.947e-05/1.702, allocations: 374.7 kB / 1.365 GB, free: 55.04 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/1.702, allocations: 213.2 kB / 1.365 GB, free: 54.83 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004733/1.703, allocations: 400.3 kB / 1.365 GB, free: 54.36 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/1.703, allocations: 252.7 kB / 1.366 GB, free: 54.12 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.703, allocations: 3.938 kB / 1.366 GB, free: 54.11 MB / 0.698 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00116/1.704, allocations: 0.7222 MB / 1.366 GB, free: 53.38 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002847/1.705, allocations: 1.744 MB / 1.368 GB, free: 51.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/1.705, allocations: 12 kB / 1.368 GB, free: 51.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/1.705, allocations: 152.8 kB / 1.368 GB, free: 51.33 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/1.706, allocations: 159.7 kB / 1.368 GB, free: 51.18 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005062/1.706, allocations: 0.6304 MB / 1.369 GB, free: 50.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006146/1.707, allocations: 103.4 kB / 1.369 GB, free: 50.42 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.623e-05/1.707, allocations: 35.98 kB / 1.369 GB, free: 50.38 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.793e-06/1.707, allocations: 4 kB / 1.369 GB, free: 50.38 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001025/1.708, allocations: 0.6111 MB / 1.37 GB, free: 49.77 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/1.708, allocations: 4 kB / 1.37 GB, free: 49.77 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.212e-06/1.708, allocations: 8 kB / 1.37 GB, free: 49.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005684/1.709, allocations: 168.3 kB / 1.37 GB, free: 49.59 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/1.709, allocations: 8 kB / 1.37 GB, free: 49.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005148/1.709, allocations: 103.3 kB / 1.37 GB, free: 49.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/1.709, allocations: 31.98 kB / 1.37 GB, free: 49.45 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 () * Number of clocked 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.0002232/1.709, allocations: 274.4 kB / 1.37 GB, free: 49.18 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.796e-05/1.71, allocations: 63.25 kB / 1.37 GB, free: 49.11 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/1.711, allocations: 0.6627 MB / 1.371 GB, free: 48.43 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/1.711, allocations: 8 kB / 1.371 GB, free: 48.42 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/1.711, allocations: 0 / 1.371 GB, free: 48.42 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/1.711, allocations: 3.953 kB / 1.371 GB, free: 48.42 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/1.713, allocations: 1.383 MB / 1.372 GB, free: 46.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/1.713, allocations: 0 / 1.372 GB, free: 46.96 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003364/1.713, allocations: 91.98 kB / 1.372 GB, free: 46.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003386/1.713, allocations: 132.8 kB / 1.372 GB, free: 46.74 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/1.713, allocations: 8 kB / 1.372 GB, free: 46.73 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004487/1.714, allocations: 0.6459 MB / 1.373 GB, free: 46.06 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/1.714, allocations: 0 / 1.373 GB, free: 46.06 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/1.715, allocations: 0.7526 MB / 1.374 GB, free: 45.26 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/1.715, allocations: 196 kB / 1.374 GB, free: 45.05 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.622e-05/1.715, allocations: 12 kB / 1.374 GB, free: 45.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/1.716, allocations: 59.88 kB / 1.374 GB, free: 44.98 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.383e-05/1.716, allocations: 35.95 kB / 1.374 GB, free: 44.95 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/1.716, allocations: 23.94 kB / 1.374 GB, free: 44.92 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003354/1.716, allocations: 399.1 kB / 1.375 GB, free: 44.54 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/1.716, allocations: 0 / 1.375 GB, free: 44.54 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001077/1.717, allocations: 423.3 kB / 1.375 GB, free: 44.12 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 () * Number of clocked 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.001859/1.719, allocations: 1.824 MB / 1.377 GB, free: 42.25 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001624/1.721, allocations: 0.906 MB / 1.378 GB, free: 41.35 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/1.721, allocations: 0 / 1.378 GB, free: 41.35 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005767/1.721, allocations: 295.8 kB / 1.378 GB, free: 41.06 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/1.723, allocations: 249.2 kB / 1.378 GB, free: 40.82 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/1.725, allocations: 4.664 MB / 1.383 GB, free: 36.02 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/1.725, allocations: 0.9197 MB / 1.384 GB, free: 35.07 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005357/1.726, allocations: 157.1 kB / 1.384 GB, free: 34.92 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/1.726, allocations: 243.3 kB / 1.384 GB, free: 34.68 MB / 0.698 GB Notification: Performance of SimCode: time 2.31e-07/1.726, allocations: 0 / 1.384 GB, free: 34.68 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/1.758, allocations: 19.09 MB / 1.403 GB, free: 15.98 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/1.758, allocations: 275.9 kB / 1.403 GB, free: 15.63 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.508/4.266, allocations: 0 / 1.403 GB, free: 15.63 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)