Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/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) 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 Buildings with version 8.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.913/1.913, allocations: 293 MB / 309 MB, free: 4.805 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 172.5 kB / 378.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.4 MB / 0.6383 GB, free: 8.207 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008011/0.0008013, allocations: 92.2 kB / 0.7527 GB, free: 62.73 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004554/0.0004555, allocations: 12 kB / 0.8768 GB, free: 10.42 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3058, allocations: 116.4 MB / 0.9904 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.72/2.026, allocations: 402.5 MB / 1.383 GB, free: 272.1 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/2.026, allocations: 106.4 kB / 1.384 GB, free: 272.1 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.428/3.454, allocations: 428 MB / 1.802 GB, free: 181.9 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.765e-06/3.454, allocations: 0 / 1.802 GB, free: 181.9 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001878/3.454, allocations: 38.62 kB / 1.802 GB, free: 181.9 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004947/3.459, allocations: 1.504 MB / 1.803 GB, free: 181.2 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/3.459, allocations: 8.781 kB / 1.803 GB, free: 181.2 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/3.46, allocations: 150.3 kB / 1.803 GB, free: 181.2 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/3.463, allocations: 0.8614 MB / 1.804 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/3.463, allocations: 83.12 kB / 1.804 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006326/3.464, allocations: 123.2 kB / 1.804 GB, free: 180.9 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/3.465, allocations: 0.6369 MB / 1.805 GB, free: 180.8 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/3.465, allocations: 3.938 kB / 1.805 GB, free: 180.8 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/3.465, allocations: 29.25 kB / 1.805 GB, free: 180.8 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/3.465, allocations: 20.27 kB / 1.805 GB, free: 180.8 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/3.466, allocations: 470.4 kB / 1.805 GB, free: 180.8 MB / 0.9323 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.006688/3.473, allocations: 3.08 MB / 1.808 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006696/3.474, allocations: 329.4 kB / 1.809 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/3.474, allocations: 163.9 kB / 1.809 GB, free: 179.5 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003213/3.474, allocations: 344.1 kB / 1.809 GB, free: 179.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/3.474, allocations: 40.98 kB / 1.809 GB, free: 179.1 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=33): time 2.946e-06/3.474, allocations: 0 / 1.809 GB, free: 179.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=33): time 0.001458/3.476, allocations: 0.5591 MB / 1.81 GB, free: 179 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/3.476, allocations: 57.41 kB / 1.81 GB, free: 178.9 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/3.477, allocations: 0.8783 MB / 1.811 GB, free: 178.8 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001662/3.477, allocations: 59.2 kB / 1.811 GB, free: 178.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004312/3.478, allocations: 0.5545 MB / 1.811 GB, free: 178.5 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/3.478, allocations: 111.8 kB / 1.811 GB, free: 178.5 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/3.478, allocations: 10.62 kB / 1.811 GB, free: 178.5 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 6.602e-05/3.478, allocations: 327.8 kB / 1.812 GB, free: 178.1 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/3.478, allocations: 187.4 kB / 1.812 GB, free: 178.1 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/3.48, allocations: 1.428 MB / 1.813 GB, free: 177.1 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007035/3.48, allocations: 461.8 kB / 1.814 GB, free: 177.1 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/3.48, allocations: 0 / 1.814 GB, free: 177.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001144/3.482, allocations: 0.6567 MB / 1.814 GB, free: 177 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 7.021e-05/3.482, allocations: 156 kB / 1.815 GB, free: 176.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/3.482, allocations: 0.8438 kB / 1.815 GB, free: 176.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/3.482, allocations: 6.031 kB / 1.815 GB, free: 176.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/3.483, allocations: 249.3 kB / 1.815 GB, free: 176.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/3.484, allocations: 2.963 MB / 1.818 GB, free: 173.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003551/3.488, allocations: 0.916 MB / 1.819 GB, free: 173.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.771e-05/3.488, allocations: 26.62 kB / 1.819 GB, free: 173.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/3.488, allocations: 3.219 kB / 1.819 GB, free: 173.9 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001155/3.489, allocations: 0.5119 MB / 1.819 GB, free: 173.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/3.489, allocations: 3.312 kB / 1.819 GB, free: 173.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.205e-06/3.489, allocations: 3.312 kB / 1.819 GB, free: 173.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008214/3.49, allocations: 167.7 kB / 1.819 GB, free: 173.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/3.49, allocations: 7.484 kB / 1.819 GB, free: 173.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003524/3.493, allocations: 0.8981 MB / 1.82 GB, free: 173.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/3.494, allocations: 28.12 kB / 1.82 GB, free: 173.8 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006258/3.494, allocations: 328.9 kB / 1.82 GB, free: 173.6 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/3.494, allocations: 93.34 kB / 1.821 GB, free: 173.6 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/3.495, allocations: 0.5368 MB / 1.821 GB, free: 173.5 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/3.495, allocations: 3.938 kB / 1.821 GB, free: 173.5 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/3.495, allocations: 0 / 1.821 GB, free: 173.5 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/3.496, allocations: 2.203 kB / 1.821 GB, free: 173.5 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/3.498, allocations: 1.278 MB / 1.822 GB, free: 173.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/3.498, allocations: 2.844 kB / 1.822 GB, free: 173.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005277/3.498, allocations: 120.2 kB / 1.822 GB, free: 173.2 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.218e-06/3.498, allocations: 12.19 kB / 1.822 GB, free: 173.2 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/3.498, allocations: 10.3 kB / 1.822 GB, free: 173.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/3.499, allocations: 2.944 MB / 1.825 GB, free: 170.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/3.499, allocations: 0 / 1.825 GB, free: 170.2 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009043/3.5, allocations: 0.5905 MB / 1.826 GB, free: 170 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004364/3.501, allocations: 221 kB / 1.826 GB, free: 169.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/3.501, allocations: 14.2 kB / 1.826 GB, free: 169.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005652/3.501, allocations: 64.48 kB / 1.826 GB, free: 169.9 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/3.502, allocations: 31.09 kB / 1.826 GB, free: 169.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/3.502, allocations: 14.84 kB / 1.826 GB, free: 169.9 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0009667/3.503, allocations: 0.5862 MB / 1.827 GB, free: 169.8 MB / 0.9323 GB Notification: Performance of sort global known variables: time 2.2e-07/3.503, allocations: 0 / 1.827 GB, free: 169.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002623/3.505, allocations: 0.6092 MB / 1.827 GB, free: 169.7 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/3.507, allocations: 0.5062 MB / 1.828 GB, free: 169.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003156/3.51, allocations: 0.871 MB / 1.829 GB, free: 169.5 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/3.51, allocations: 0 / 1.829 GB, free: 169.5 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0007277/3.51, allocations: 246.6 kB / 1.829 GB, free: 169.5 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/3.513, allocations: 489.2 kB / 1.829 GB, free: 169.5 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/3.517, allocations: 1.783 MB / 1.831 GB, free: 168.6 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/3.517, allocations: 1.018 MB / 1.832 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001565/3.519, allocations: 204 kB / 1.832 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/3.519, allocations: 80.14 kB / 1.832 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of SimCode: time 7.81e-07/3.519, allocations: 0 / 1.832 GB, free: 167.9 MB / 0.9323 GB Notification: Performance of Templates: time 0.0556/3.574, allocations: 28.29 MB / 1.86 GB, free: 166.6 MB / 0.9323 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)