Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 110.6 kB / 16.42 MB, free: 6.508 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.00167/0.00167, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002283/0.002283, allocations: 287.6 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9621/0.9621, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 95.83 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4937/0.4958, allocations: 86.97 MB / 0.7671 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1174/0.6132, allocations: 112.6 MB / 0.877 GB, free: 3.055 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03131/0.6446, allocations: 20.25 MB / 0.8968 GB, free: 14.77 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005147/0.6498, allocations: 107.3 kB / 0.8969 GB, free: 14.66 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004368/0.6542, allocations: 1.285 MB / 0.8982 GB, free: 13.37 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01159/0.6658, allocations: 3.689 MB / 0.9018 GB, free: 9.664 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007806/0.6736, allocations: 3.11 MB / 0.9048 GB, free: 6.59 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01046/0.6841, allocations: 7.217 MB / 0.9119 GB, free: 15.35 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004656/0.6888, allocations: 2.568 MB / 0.9144 GB, free: 12.72 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007024/0.6958, allocations: 2.893 MB / 0.9172 GB, free: 9.824 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004024/0.6999, allocations: 2.127 MB / 0.9193 GB, free: 7.688 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0008701/0.7008, allocations: 256 kB / 0.9195 GB, free: 7.438 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0043/0.7051, allocations: 1.642 MB / 0.9211 GB, free: 5.793 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.7062, allocations: 0.6928 MB / 0.9218 GB, free: 5.098 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.00264/0.7088, allocations: 1.512 MB / 0.9233 GB, free: 3.578 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.006707/0.7155, allocations: 4.415 MB / 0.9276 GB, free: 15.15 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7156, allocations: 0 / 0.9276 GB, free: 15.15 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7156, allocations: 0 / 0.9276 GB, free: 15.15 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001187/0.7157, allocations: 0 / 0.9276 GB, free: 15.15 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.00756/0.7233, allocations: 3.222 MB / 0.9307 GB, free: 11.86 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.7233, allocations: 8.031 kB / 0.9307 GB, free: 11.86 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/0.7246, allocations: 328.5 kB / 0.9311 GB, free: 11.53 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00457/0.7292, allocations: 2.198 MB / 0.9332 GB, free: 9.258 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.7293, allocations: 123 kB / 0.9333 GB, free: 9.137 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002442/0.7295, allocations: 172 kB / 0.9335 GB, free: 8.969 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002893/0.7324, allocations: 1.612 MB / 0.9351 GB, free: 7.293 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.7325, allocations: 3.906 kB / 0.9351 GB, free: 7.289 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.7326, allocations: 64 kB / 0.9351 GB, free: 7.227 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/0.7327, allocations: 43.88 kB / 0.9352 GB, free: 7.184 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00204/0.7347, allocations: 1.155 MB / 0.9363 GB, free: 6.023 MB / 0.7012 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.0109/0.7456, allocations: 7.912 MB / 0.944 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000758/0.7464, allocations: 479 kB / 0.9445 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/0.7469, allocations: 326.9 kB / 0.9448 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006232/0.7476, allocations: 0.7524 MB / 0.9455 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.7476, allocations: 47.06 kB / 0.9456 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 3.496e-06/0.7476, allocations: 0 / 0.9456 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002/0.7496, allocations: 0.9882 MB / 0.9465 GB, free: 10.84 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.7497, allocations: 59.97 kB / 0.9466 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/0.7528, allocations: 2.339 MB / 0.9489 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.753, allocations: 49.7 kB / 0.9489 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009654/0.7539, allocations: 1.146 MB / 0.95 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.7542, allocations: 212.9 kB / 0.9502 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003557/0.7545, allocations: 258.6 kB / 0.9505 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.7547, allocations: 353.9 kB / 0.9508 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006342/0.7553, allocations: 357.9 kB / 0.9512 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009246/0.7562, allocations: 0.7424 MB / 0.9519 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.7577, allocations: 0.9902 MB / 0.9529 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.7577, allocations: 4 kB / 0.9529 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002232/0.7599, allocations: 1.292 MB / 0.9541 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.76, allocations: 8 kB / 0.9541 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.76, allocations: 8 kB / 0.9541 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.76, allocations: 12 kB / 0.9542 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009858/0.761, allocations: 251.6 kB / 0.9544 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.29e-05/0.761, allocations: 19.94 kB / 0.9544 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.7624, allocations: 170.5 kB / 0.9546 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/0.7625, allocations: 51.98 kB / 0.9546 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001229/0.7637, allocations: 0.7626 MB / 0.9554 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009005/0.7647, allocations: 0.7348 MB / 0.9561 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.3385/1.103, allocations: 0.9421 MB / 0.957 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.515e-05/1.103, allocations: 3.234 kB / 0.957 GB, free: 180.9 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003118/1.106, allocations: 1.264 MB / 0.9582 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/1.106, allocations: 12.03 kB / 0.9583 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/1.106, allocations: 8.531 kB / 0.9583 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/1.106, allocations: 17.66 kB / 0.9583 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/1.108, allocations: 246.8 kB / 0.9585 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.093e-05/1.108, allocations: 19.14 kB / 0.9585 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/1.109, allocations: 122.1 kB / 0.9586 GB, free: 180.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/1.109, allocations: 59.06 kB / 0.9587 GB, free: 180.8 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002579/1.11, allocations: 255.1 kB / 0.9589 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005701/1.11, allocations: 241 kB / 0.9592 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/1.112, allocations: 0.8804 MB / 0.96 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001001/1.113, allocations: 0.6843 MB / 0.9607 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/1.113, allocations: 0.8438 kB / 0.9607 GB, free: 180 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008196/1.114, allocations: 416.7 kB / 0.9611 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004543/1.114, allocations: 15.95 kB / 0.9611 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/1.116, allocations: 47.44 kB / 0.9612 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.907e-05/1.116, allocations: 38.88 kB / 0.9612 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001428/1.117, allocations: 0.7748 MB / 0.962 GB, free: 179.4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001989/1.119, allocations: 1.398 MB / 0.9633 GB, free: 178.7 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004641/1.12, allocations: 313.2 kB / 0.9636 GB, free: 178.6 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002191/1.122, allocations: 1.569 MB / 0.9652 GB, free: 178 MB / 0.7169 GB Notification: Performance of Backend: time 9.62e-07/1.122, allocations: 0 / 0.9652 GB, free: 178 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004868/1.127, allocations: 2.045 MB / 0.9672 GB, free: 177.5 MB / 0.7169 GB Notification: Performance of SimCode: time 0.008471/1.135, allocations: 5.183 MB / 0.9722 GB, free: 175.1 MB / 0.7169 GB Notification: Performance of Templates: time 0.05992/1.195, allocations: 48.89 MB / 1.02 GB, free: 130.3 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)