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.006495/0.006495, allocations: 97.56 kB / 15.73 MB, free: 6.035 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.001178/0.001179, allocations: 201 kB / 16.68 MB, free: 5.961 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002221/0.002221, allocations: 278.5 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9659/0.9659, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 91.84 kB / 0.6814 GB, free: 15.47 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1555, allocations: 86.97 MB / 0.7664 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4284/0.5839, allocations: 112.6 MB / 0.8764 GB, free: 15.42 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.0295/0.6135, allocations: 20.24 MB / 0.8961 GB, free: 14.11 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0042/0.6177, allocations: 111.3 kB / 0.8962 GB, free: 14 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003851/0.6216, allocations: 1.281 MB / 0.8975 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.6323, allocations: 3.684 MB / 0.9011 GB, free: 9.012 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.007759/0.6401, allocations: 3.129 MB / 0.9042 GB, free: 5.934 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009794/0.6499, allocations: 7.203 MB / 0.9112 GB, free: 14.71 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003783/0.6537, allocations: 2.585 MB / 0.9137 GB, free: 12.06 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005897/0.6596, allocations: 2.811 MB / 0.9165 GB, free: 9.25 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003563/0.6632, allocations: 2.128 MB / 0.9185 GB, free: 7.113 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0007021/0.6639, allocations: 256 kB / 0.9188 GB, free: 6.863 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004245/0.6681, allocations: 1.646 MB / 0.9204 GB, free: 5.215 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.6692, allocations: 0.6889 MB / 0.9211 GB, free: 4.523 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001922/0.6711, allocations: 1.512 MB / 0.9225 GB, free: 3.004 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.006062/0.6772, allocations: 4.425 MB / 0.9269 GB, free: 14.57 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.6772, allocations: 7.938 kB / 0.9269 GB, free: 14.56 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6772, allocations: 0 / 0.9269 GB, free: 14.56 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.378e-05/0.6772, allocations: 0 / 0.9269 GB, free: 14.56 MB / 0.6856 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.004979/0.6822, allocations: 3.323 MB / 0.9301 GB, free: 11.17 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.6823, allocations: 8.031 kB / 0.9301 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006941/0.683, allocations: 342.5 kB / 0.9304 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003287/0.6863, allocations: 2.227 MB / 0.9326 GB, free: 8.531 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.011e-05/0.6864, allocations: 127 kB / 0.9327 GB, free: 8.406 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.6866, allocations: 172 kB / 0.9329 GB, free: 8.238 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002484/0.6891, allocations: 1.612 MB / 0.9345 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.6891, allocations: 0 / 0.9345 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/0.6892, allocations: 67.98 kB / 0.9345 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-05/0.6893, allocations: 40 kB / 0.9346 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.6912, allocations: 1.151 MB / 0.9357 GB, free: 5.301 MB / 0.6856 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.009455/0.7006, allocations: 7.918 MB / 0.9434 GB, free: 12.87 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007851/0.7014, allocations: 482.3 kB / 0.9439 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004741/0.7019, allocations: 326.9 kB / 0.9442 GB, free: 12.07 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006117/0.7025, allocations: 0.7563 MB / 0.9449 GB, free: 11.15 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.7026, allocations: 43.06 kB / 0.945 GB, free: 11.1 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=60): time 4.91e-06/0.7026, allocations: 4 kB / 0.945 GB, free: 11.1 MB / 0.7012 GB Notification: Performance of matching and sorting (n=60): time 0.002041/0.7046, allocations: 1.001 MB / 0.946 GB, free: 10.09 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.7047, allocations: 63.97 kB / 0.946 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002849/0.7076, allocations: 2.336 MB / 0.9483 GB, free: 7.668 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.899e-05/0.7076, allocations: 49.7 kB / 0.9484 GB, free: 7.613 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008847/0.7085, allocations: 1.167 MB / 0.9495 GB, free: 6.438 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.7087, allocations: 230 kB / 0.9497 GB, free: 6.211 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003407/0.7091, allocations: 254.8 kB / 0.95 GB, free: 5.953 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.7092, allocations: 345.9 kB / 0.9503 GB, free: 5.609 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006327/0.7099, allocations: 361.9 kB / 0.9506 GB, free: 5.254 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009412/0.7108, allocations: 0.7487 MB / 0.9514 GB, free: 4.355 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.7122, allocations: 0.9863 MB / 0.9523 GB, free: 3.266 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.7122, allocations: 4 kB / 0.9523 GB, free: 3.262 MB / 0.7012 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002198/0.7144, allocations: 1.305 MB / 0.9536 GB, free: 1.945 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.7144, allocations: 12.03 kB / 0.9536 GB, free: 1.934 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.7145, allocations: 8 kB / 0.9536 GB, free: 1.926 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.7145, allocations: 12 kB / 0.9536 GB, free: 1.914 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008906/0.7154, allocations: 251.6 kB / 0.9539 GB, free: 1.668 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.7154, allocations: 19.92 kB / 0.9539 GB, free: 1.648 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.7167, allocations: 170.8 kB / 0.9541 GB, free: 1.48 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.7168, allocations: 55.98 kB / 0.9541 GB, free: 1.426 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00123/0.7181, allocations: 0.7563 MB / 0.9549 GB, free: 0.6641 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008571/0.7189, allocations: 0.7387 MB / 0.9556 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001236/0.7202, allocations: 0.953 MB / 0.9565 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.689e-06/0.7202, allocations: 4 kB / 0.9565 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00192/0.7221, allocations: 1.272 MB / 0.9577 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.7221, allocations: 12 kB / 0.9578 GB, free: 13.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.7221, allocations: 8 kB / 0.9578 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.7222, allocations: 12 kB / 0.9578 GB, free: 13.38 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008144/0.723, allocations: 251.6 kB / 0.958 GB, free: 13.14 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-05/0.723, allocations: 23.92 kB / 0.958 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.7242, allocations: 123.7 kB / 0.9582 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.7243, allocations: 48 kB / 0.9582 GB, free: 12.95 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.0002322/0.7246, allocations: 248.6 kB / 0.9584 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003058/0.7249, allocations: 254.3 kB / 0.9587 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.7264, allocations: 0.8862 MB / 0.9596 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.7265, allocations: 7.984 kB / 0.9596 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.7265, allocations: 4 kB / 0.9596 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009636/0.7275, allocations: 0.6775 MB / 0.9602 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003425/0.7309, allocations: 2.593 MB / 0.9628 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.7309, allocations: 0 / 0.9628 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005132/0.7314, allocations: 123.9 kB / 0.9629 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.7314, allocations: 4 kB / 0.9629 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.7315, allocations: 19.94 kB / 0.9629 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.7315, allocations: 4.094 kB / 0.9629 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.7315, allocations: 4 kB / 0.9629 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.7334, allocations: 1.326 MB / 0.9642 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005583/0.734, allocations: 423.3 kB / 0.9646 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.7342, allocations: 16 kB / 0.9646 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008555/0.7351, allocations: 47.88 kB / 0.9647 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.172e-05/0.7352, allocations: 48.38 kB / 0.9647 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-05/0.7352, allocations: 35.92 kB / 0.9647 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002018/0.7373, allocations: 1.569 MB / 0.9663 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2e-07/0.7373, allocations: 0 / 0.9663 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002498/0.7398, allocations: 1.115 MB / 0.9674 GB, free: 3.379 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/0.7413, allocations: 0.7637 MB / 0.9681 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002392/0.7437, allocations: 1.365 MB / 0.9694 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7437, allocations: 0 / 0.9694 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005087/0.7442, allocations: 324.4 kB / 0.9698 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005755/0.75, allocations: 1.38 MB / 0.9711 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00608/0.7561, allocations: 3.742 MB / 0.9748 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/0.7575, allocations: 1.594 MB / 0.9763 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001924/0.7594, allocations: 0.5018 MB / 0.9768 GB, free: 9.82 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004729/0.7599, allocations: 179.4 kB / 0.977 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of SimCode: time 7.81e-07/0.7599, allocations: 0 / 0.977 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of Templates: time 0.06859/0.8285, allocations: 44.81 MB / 1.021 GB, free: 13.49 MB / 0.7794 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)