Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001255/0.001255, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 194.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.764/1.764, allocations: 292.3 MB / 0.5489 GB, free: 12.83 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001469/0.00147, allocations: 69.02 kB / 0.6715 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3337, allocations: 114.5 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.116/0.4498, allocations: 113.2 MB / 0.8939 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.5555/1.005, allocations: 24.01 MB / 0.9174 GB, free: 34.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006254/1.012, allocations: 121.9 kB / 0.9175 GB, free: 34.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.004883/1.017, allocations: 1.274 MB / 0.9187 GB, free: 34.73 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01569/1.032, allocations: 3.652 MB / 0.9223 GB, free: 34.58 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00985/1.042, allocations: 3.035 MB / 0.9253 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01338/1.056, allocations: 7.09 MB / 0.9322 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007056/1.063, allocations: 2.553 MB / 0.9347 GB, free: 34.14 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009996/1.073, allocations: 2.766 MB / 0.9374 GB, free: 33.95 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005851/1.079, allocations: 2.115 MB / 0.9395 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.002048/1.081, allocations: 251.6 kB / 0.9397 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008101/1.089, allocations: 1.629 MB / 0.9413 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.002318/1.091, allocations: 0.6814 MB / 0.9419 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.006095/1.097, allocations: 1.498 MB / 0.9434 GB, free: 33 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01292/1.11, allocations: 4.3 MB / 0.9476 GB, free: 32.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.11, allocations: 0 / 0.9476 GB, free: 32.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.026e-06/1.11, allocations: 1.125 kB / 0.9476 GB, free: 32.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.000231/1.111, allocations: 0 / 0.9476 GB, free: 32.23 MB / 0.7169 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.01046/1.121, allocations: 3.179 MB / 0.9507 GB, free: 30.28 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/1.121, allocations: 8.906 kB / 0.9507 GB, free: 30.28 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/1.123, allocations: 317.5 kB / 0.951 GB, free: 30.13 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005149/1.128, allocations: 2.076 MB / 0.9531 GB, free: 29.03 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/1.128, allocations: 123.1 kB / 0.9532 GB, free: 28.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002781/1.128, allocations: 164.3 kB / 0.9533 GB, free: 28.93 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003239/1.131, allocations: 1.614 MB / 0.9549 GB, free: 28.2 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/1.131, allocations: 3.906 kB / 0.9549 GB, free: 28.2 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/1.132, allocations: 62.88 kB / 0.955 GB, free: 28.15 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-05/1.132, allocations: 42.53 kB / 0.955 GB, free: 28.14 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/1.134, allocations: 1.147 MB / 0.9561 GB, free: 27.73 MB / 0.7169 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.01099/1.145, allocations: 7.957 MB / 0.9639 GB, free: 21.71 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/1.145, allocations: 472.5 kB / 0.9644 GB, free: 21.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00046/1.146, allocations: 327.2 kB / 0.9647 GB, free: 21.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004792/1.146, allocations: 0.7577 MB / 0.9654 GB, free: 20.45 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/1.146, allocations: 45.81 kB / 0.9654 GB, free: 20.39 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 2.595e-06/1.146, allocations: 0.5312 kB / 0.9654 GB, free: 20.39 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002152/1.149, allocations: 0.9833 MB / 0.9664 GB, free: 19.89 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/1.149, allocations: 57.53 kB / 0.9665 GB, free: 19.83 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/1.151, allocations: 2.281 MB / 0.9687 GB, free: 18.62 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001515/1.152, allocations: 49.58 kB / 0.9687 GB, free: 18.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007533/1.152, allocations: 1.146 MB / 0.9699 GB, free: 17.57 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/1.153, allocations: 217.1 kB / 0.9701 GB, free: 17.39 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/1.153, allocations: 251.9 kB / 0.9703 GB, free: 17.24 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.436e-05/1.153, allocations: 348.7 kB / 0.9706 GB, free: 16.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005663/1.154, allocations: 361.7 kB / 0.971 GB, free: 16.73 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007677/1.154, allocations: 0.7429 MB / 0.9717 GB, free: 16.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/1.156, allocations: 0.9893 MB / 0.9727 GB, free: 15.39 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/1.156, allocations: 3 kB / 0.9727 GB, free: 15.39 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002273/1.158, allocations: 1.285 MB / 0.9739 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/1.158, allocations: 13.44 kB / 0.9739 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/1.158, allocations: 8.062 kB / 0.974 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.03e-05/1.158, allocations: 17.84 kB / 0.974 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009553/1.159, allocations: 254.1 kB / 0.9742 GB, free: 14.74 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.471e-05/1.159, allocations: 18.44 kB / 0.9742 GB, free: 14.74 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/1.161, allocations: 167.6 kB / 0.9744 GB, free: 14.62 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/1.161, allocations: 56.75 kB / 0.9744 GB, free: 14.61 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001299/1.162, allocations: 0.7555 MB / 0.9752 GB, free: 14.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007286/1.163, allocations: 0.7361 MB / 0.9759 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001095/1.164, allocations: 0.9598 MB / 0.9768 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.32e-06/1.164, allocations: 2.594 kB / 0.9768 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002197/1.166, allocations: 1.251 MB / 0.9781 GB, free: 12.16 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/1.166, allocations: 19.53 kB / 0.9781 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/1.166, allocations: 12.5 kB / 0.9781 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/1.166, allocations: 14.06 kB / 0.9781 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009681/1.167, allocations: 255.1 kB / 0.9783 GB, free: 12.08 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.637e-05/1.167, allocations: 22.45 kB / 0.9784 GB, free: 12.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/1.17, allocations: 123.3 kB / 0.9785 GB, free: 12 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/1.17, allocations: 49.27 kB / 0.9785 GB, free: 11.99 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.0004958/1.17, allocations: 245.1 kB / 0.9788 GB, free: 11.76 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/1.171, allocations: 234.8 kB / 0.979 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/1.173, allocations: 0.8754 MB / 0.9798 GB, free: 11.14 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/1.173, allocations: 7.094 kB / 0.9799 GB, free: 11.14 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/1.173, allocations: 4 kB / 0.9799 GB, free: 11.14 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008331/1.174, allocations: 0.6875 MB / 0.9805 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004004/1.178, allocations: 2.569 MB / 0.983 GB, free: 8.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/1.178, allocations: 2.781 kB / 0.983 GB, free: 8.945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005218/1.178, allocations: 120.4 kB / 0.9832 GB, free: 8.922 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/1.178, allocations: 6.438 kB / 0.9832 GB, free: 8.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/1.178, allocations: 20.33 kB / 0.9832 GB, free: 8.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/1.178, allocations: 6.688 kB / 0.9832 GB, free: 8.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.178, allocations: 0 / 0.9832 GB, free: 8.902 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/1.18, allocations: 1.304 MB / 0.9845 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007808/1.181, allocations: 414.6 kB / 0.9849 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/1.181, allocations: 13.41 kB / 0.9849 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009866/1.182, allocations: 46.69 kB / 0.9849 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.585e-05/1.182, allocations: 50.16 kB / 0.985 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-05/1.182, allocations: 30.92 kB / 0.985 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001973/1.184, allocations: 1.536 MB / 0.9865 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.2e-07/1.184, allocations: 0 / 0.9865 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00307/1.187, allocations: 1.096 MB / 0.9876 GB, free: 6.66 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.001608/1.189, allocations: 0.7512 MB / 0.9883 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002599/1.192, allocations: 1.445 MB / 0.9897 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/1.192, allocations: 3.938 kB / 0.9897 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004511/1.192, allocations: 327 kB / 0.99 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006415/1.198, allocations: 1.409 MB / 0.9914 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/1.204, allocations: 3.693 MB / 0.995 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/1.205, allocations: 1.581 MB / 0.9965 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002246/1.208, allocations: 497 kB / 0.997 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/1.208, allocations: 171.4 kB / 0.9972 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of SimCode: time 1.262e-06/1.208, allocations: 4 kB / 0.9972 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of Templates: time 0.07922/1.287, allocations: 47.03 MB / 1.043 GB, free: 14.72 MB / 0.7794 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)