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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7462/0.7462, allocations: 140.1 MB / 156 MB, free: 5.172 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 178.6 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.4 MB / 426.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008844/0.0008846, allocations: 86.34 kB / 0.4945 GB, free: 8.406 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001616/0.001616, allocations: 270.1 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004393, allocations: 23.98 kB / 0.662 GB, free: 6.809 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3009, allocations: 79.3 MB / 0.7395 GB, free: 46.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5744/0.8754, allocations: 366 MB / 1.097 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.8756, allocations: 92.45 kB / 1.097 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.6613/1.537, allocations: 235.3 MB / 1.327 GB, free: 83.26 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.385e-06/1.537, allocations: 0 / 1.327 GB, free: 83.26 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 7.398e-05/1.537, allocations: 27.92 kB / 1.327 GB, free: 83.23 MB / 0.6667 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.002003/1.539, allocations: 1.075 MB / 1.328 GB, free: 82.11 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/1.539, allocations: 12.03 kB / 1.328 GB, free: 82.09 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001944/1.539, allocations: 84 kB / 1.328 GB, free: 82.01 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009067/1.54, allocations: 0.5433 MB / 1.329 GB, free: 81.43 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/1.54, allocations: 37.38 kB / 1.329 GB, free: 81.39 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/1.54, allocations: 52.38 kB / 1.329 GB, free: 81.34 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/1.541, allocations: 0.6221 MB / 1.329 GB, free: 80.66 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/1.541, allocations: 3.938 kB / 1.329 GB, free: 80.65 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.22e-05/1.541, allocations: 28 kB / 1.329 GB, free: 80.62 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/1.541, allocations: 15.98 kB / 1.329 GB, free: 80.61 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009266/1.542, allocations: 0.4995 MB / 1.33 GB, free: 80.11 MB / 0.6667 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.002828/1.545, allocations: 3.209 MB / 1.333 GB, free: 76.71 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/1.546, allocations: 336.5 kB / 1.333 GB, free: 76.38 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000405/1.546, allocations: 236.8 kB / 1.333 GB, free: 76.14 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002166/1.546, allocations: 356.1 kB / 1.334 GB, free: 75.72 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/1.546, allocations: 34.56 kB / 1.334 GB, free: 75.68 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=38): time 1.834e-06/1.546, allocations: 4 kB / 1.334 GB, free: 75.67 MB / 0.6667 GB Notification: Performance of matching and sorting (n=38): time 0.00174/1.548, allocations: 0.8272 MB / 1.335 GB, free: 74.82 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/1.548, allocations: 59.16 kB / 1.335 GB, free: 74.75 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/1.549, allocations: 0.5744 MB / 1.335 GB, free: 74.16 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/1.549, allocations: 37.7 kB / 1.335 GB, free: 74.12 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/1.549, allocations: 328.3 kB / 1.336 GB, free: 73.8 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 6.702e-05/1.549, allocations: 134 kB / 1.336 GB, free: 73.66 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/1.549, allocations: 20 kB / 1.336 GB, free: 73.64 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.264e-05/1.549, allocations: 366.8 kB / 1.336 GB, free: 73.28 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004135/1.55, allocations: 209.2 kB / 1.336 GB, free: 73.07 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/1.55, allocations: 404.3 kB / 1.337 GB, free: 72.6 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008329/1.551, allocations: 0.5705 MB / 1.337 GB, free: 71.97 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.551, allocations: 4 kB / 1.337 GB, free: 71.96 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001205/1.552, allocations: 0.7144 MB / 1.338 GB, free: 71.24 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.538e-05/1.552, allocations: 231.5 kB / 1.338 GB, free: 70.95 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/1.552, allocations: 4 kB / 1.338 GB, free: 70.94 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005087/1.553, allocations: 148.8 kB / 1.338 GB, free: 70.79 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/1.553, allocations: 155.8 kB / 1.338 GB, free: 70.64 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004579/1.554, allocations: 0.6343 MB / 1.339 GB, free: 69.98 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005957/1.554, allocations: 103.4 kB / 1.339 GB, free: 69.88 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/1.555, allocations: 31.98 kB / 1.339 GB, free: 69.85 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.141e-06/1.555, allocations: 4 kB / 1.339 GB, free: 69.84 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001038/1.556, allocations: 0.615 MB / 1.34 GB, free: 69.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/1.556, allocations: 4 kB / 1.34 GB, free: 69.23 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.332e-06/1.556, allocations: 8.562 kB / 1.34 GB, free: 69.22 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005376/1.556, allocations: 175.7 kB / 1.34 GB, free: 69.05 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.556, allocations: 8 kB / 1.34 GB, free: 69.04 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005373/1.557, allocations: 91.47 kB / 1.34 GB, free: 68.95 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/1.557, allocations: 31.98 kB / 1.34 GB, free: 68.92 MB / 0.6667 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.0002449/1.557, allocations: 272.9 kB / 1.34 GB, free: 68.64 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.328e-05/1.557, allocations: 67.09 kB / 1.34 GB, free: 68.57 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/1.558, allocations: 0.655 MB / 1.341 GB, free: 67.9 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/1.558, allocations: 15.98 kB / 1.341 GB, free: 67.89 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/1.558, allocations: 0 / 1.341 GB, free: 67.89 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/1.558, allocations: 0 / 1.341 GB, free: 67.89 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/1.56, allocations: 1.383 MB / 1.342 GB, free: 66.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/1.56, allocations: 4.094 kB / 1.342 GB, free: 66.43 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/1.561, allocations: 87.88 kB / 1.343 GB, free: 66.34 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003358/1.561, allocations: 128.8 kB / 1.343 GB, free: 66.21 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/1.561, allocations: 23.86 kB / 1.343 GB, free: 66.19 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004226/1.562, allocations: 0.6305 MB / 1.343 GB, free: 65.54 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.562, allocations: 4.031 kB / 1.343 GB, free: 65.53 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/1.563, allocations: 0.7237 MB / 1.344 GB, free: 64.78 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/1.563, allocations: 204 kB / 1.344 GB, free: 64.56 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.217e-05/1.563, allocations: 4 kB / 1.344 GB, free: 64.55 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/1.563, allocations: 63.94 kB / 1.344 GB, free: 64.49 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.587e-05/1.563, allocations: 31.84 kB / 1.344 GB, free: 64.46 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.179e-05/1.564, allocations: 19.98 kB / 1.344 GB, free: 64.44 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003483/1.564, allocations: 395.1 kB / 1.345 GB, free: 64.06 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/1.564, allocations: 0 / 1.345 GB, free: 64.06 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001094/1.565, allocations: 419.4 kB / 1.345 GB, free: 63.65 MB / 0.6667 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.0006993/1.566, allocations: 431.2 kB / 1.346 GB, free: 63.23 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001659/1.567, allocations: 0.9019 MB / 1.346 GB, free: 62.32 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.567, allocations: 0 / 1.346 GB, free: 62.32 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005725/1.568, allocations: 299.8 kB / 1.347 GB, free: 62.03 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/1.569, allocations: 262.8 kB / 1.347 GB, free: 61.77 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/1.571, allocations: 1.28 MB / 1.348 GB, free: 60.46 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/1.571, allocations: 0.9042 MB / 1.349 GB, free: 59.52 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005529/1.572, allocations: 152.9 kB / 1.349 GB, free: 59.38 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/1.572, allocations: 59.42 kB / 1.349 GB, free: 59.32 MB / 0.6667 GB Notification: Performance of SimCode: time 4.31e-07/1.572, allocations: 0 / 1.349 GB, free: 59.32 MB / 0.6667 GB Notification: Performance of Templates: time 0.0186/1.59, allocations: 13.26 MB / 1.362 GB, free: 46.2 MB / 0.6667 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)