Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json 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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007867/0.0007867, allocations: 97.56 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004698/0.004699, allocations: 171.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00172/0.00172, allocations: 265.6 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9257/0.9257, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004225/0.0004225, allocations: 18.19 kB / 0.5987 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1495, allocations: 88.54 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02753/0.1771, allocations: 28.92 MB / 0.7134 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1881, allocations: 8.116 MB / 0.7213 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009468/0.1891, allocations: 27.81 kB / 0.7213 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0009825/0.1901, allocations: 349.9 kB / 0.7217 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003304/0.1934, allocations: 1.227 MB / 0.7229 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.1958, allocations: 1.038 MB / 0.7239 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004201/0.2001, allocations: 4.206 MB / 0.728 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001476/0.2015, allocations: 1.171 MB / 0.7291 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002253/0.2038, allocations: 1.483 MB / 0.7306 GB, free: 448 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002277/0.2061, allocations: 1.597 MB / 0.7321 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002658/0.2064, allocations: 64 kB / 0.7322 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001771/0.2082, allocations: 0.9318 MB / 0.7331 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003776/0.2085, allocations: 342.7 kB / 0.7334 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0007588/0.2093, allocations: 0.7092 MB / 0.7341 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002133/0.2114, allocations: 2.095 MB / 0.7362 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2115, allocations: 0 / 0.7362 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.903e-06/0.2115, allocations: 4 kB / 0.7362 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.484e-05/0.2115, allocations: 0 / 0.7362 GB, free: 10.68 MB / 0.5294 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.00219/0.2137, allocations: 1.332 MB / 0.7375 GB, free: 9.293 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2137, allocations: 11.97 kB / 0.7375 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003025/0.214, allocations: 147.4 kB / 0.7376 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.2155, allocations: 0.9025 MB / 0.7385 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.2156, allocations: 81.31 kB / 0.7386 GB, free: 8.098 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/0.2158, allocations: 116 kB / 0.7387 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.2169, allocations: 0.6434 MB / 0.7393 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.2169, allocations: 0 / 0.7393 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.2169, allocations: 20 kB / 0.7393 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.217, allocations: 16 kB / 0.7394 GB, free: 7.281 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009005/0.2179, allocations: 484.8 kB / 0.7398 GB, free: 6.809 MB / 0.5294 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.004149/0.222, allocations: 2.879 MB / 0.7426 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.2226, allocations: 319.8 kB / 0.7429 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/0.2229, allocations: 153.3 kB / 0.7431 GB, free: 3.309 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/0.2232, allocations: 344.7 kB / 0.7434 GB, free: 2.898 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.2233, allocations: 38.78 kB / 0.7434 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=33): time 1.764e-06/0.2233, allocations: 4 kB / 0.7434 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of matching and sorting (n=33): time 0.001228/0.2245, allocations: 0.5483 MB / 0.744 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.2246, allocations: 55.41 kB / 0.744 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.2256, allocations: 0.9075 MB / 0.7449 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.2257, allocations: 57.7 kB / 0.745 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004669/0.2262, allocations: 0.5302 MB / 0.7455 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 8.267e-05/0.2263, allocations: 114.3 kB / 0.7456 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.2263, allocations: 61.69 kB / 0.7457 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2265, allocations: 334.1 kB / 0.746 GB, free: 192 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.2269, allocations: 193.2 kB / 0.7462 GB, free: 15.99 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.2282, allocations: 1.159 MB / 0.7473 GB, free: 14.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008257/0.229, allocations: 467.4 kB / 0.7477 GB, free: 14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.229, allocations: 4 kB / 0.7477 GB, free: 13.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001267/0.2303, allocations: 0.6657 MB / 0.7484 GB, free: 13.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.598e-05/0.2304, allocations: 148.3 kB / 0.7485 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.2304, allocations: 4 kB / 0.7485 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2304, allocations: 8 kB / 0.7485 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.2319, allocations: 239.6 kB / 0.7488 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.2334, allocations: 2.961 MB / 0.7517 GB, free: 9.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003465/0.2369, allocations: 0.7533 MB / 0.7524 GB, free: 9.062 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.147e-05/0.237, allocations: 27.98 kB / 0.7524 GB, free: 9.035 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.237, allocations: 8 kB / 0.7524 GB, free: 9.027 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009902/0.238, allocations: 0.4934 MB / 0.7529 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.238, allocations: 8.031 kB / 0.7529 GB, free: 8.523 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.133e-06/0.238, allocations: 4.188 kB / 0.7529 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006752/0.2387, allocations: 163.8 kB / 0.7531 GB, free: 8.359 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.2388, allocations: 11.94 kB / 0.7531 GB, free: 8.348 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003295/0.2421, allocations: 0.7339 MB / 0.7538 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.2421, allocations: 27.98 kB / 0.7538 GB, free: 7.586 MB / 0.545 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004617/0.2426, allocations: 334.5 kB / 0.7542 GB, free: 7.25 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.2427, allocations: 94.78 kB / 0.7543 GB, free: 7.156 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.2439, allocations: 0.528 MB / 0.7548 GB, free: 6.625 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.2439, allocations: 4 kB / 0.7548 GB, free: 6.621 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2439, allocations: 4 kB / 0.7548 GB, free: 6.617 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.2439, allocations: 0 / 0.7548 GB, free: 6.617 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.2458, allocations: 1.272 MB / 0.756 GB, free: 5.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2458, allocations: 0 / 0.756 GB, free: 5.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005212/0.2464, allocations: 123.8 kB / 0.7561 GB, free: 5.156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.517e-05/0.2464, allocations: 8.125 kB / 0.7561 GB, free: 5.148 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.2464, allocations: 11.94 kB / 0.7562 GB, free: 5.137 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.2478, allocations: 2.942 MB / 0.759 GB, free: 2.078 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2478, allocations: 4.031 kB / 0.759 GB, free: 2.074 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008722/0.2487, allocations: 0.582 MB / 0.7596 GB, free: 1.465 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/0.249, allocations: 227.6 kB / 0.7598 GB, free: 1.223 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.593e-05/0.2491, allocations: 8 kB / 0.7598 GB, free: 1.215 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005403/0.2496, allocations: 55.94 kB / 0.7599 GB, free: 1.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.2497, allocations: 31.89 kB / 0.7599 GB, free: 1.129 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.2497, allocations: 16 kB / 0.7599 GB, free: 1.113 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000726/0.2505, allocations: 0.6045 MB / 0.7605 GB, free: 0.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2505, allocations: 4 kB / 0.7605 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00139/0.2519, allocations: 0.5461 MB / 0.7611 GB, free: 15.95 MB / 0.5606 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006291/0.2525, allocations: 323.6 kB / 0.7614 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002508/0.255, allocations: 0.8745 MB / 0.7622 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.255, allocations: 0 / 0.7622 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005967/0.2556, allocations: 244.7 kB / 0.7624 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.2584, allocations: 487.2 kB / 0.7629 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.2609, allocations: 1.883 MB / 0.7648 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005551/0.2615, allocations: 1.021 MB / 0.7658 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009228/0.2624, allocations: 214.9 kB / 0.766 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.2626, allocations: 79.42 kB / 0.766 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/0.2626, allocations: 0 / 0.766 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of Templates: time 0.3026/0.5652, allocations: 24.41 MB / 0.7899 GB, free: 87.85 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)