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.001296/0.001296, allocations: 105.2 kB / 16.36 MB, free: 6.312 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.001349/0.001349, allocations: 189.5 kB / 17.3 MB, free: 5.871 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.562/1.562, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.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.897/1.897, allocations: 292.3 MB / 0.5496 GB, free: 17.48 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.001661/0.001661, allocations: 67.91 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.221, allocations: 114.5 MB / 0.7848 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.5662/0.7872, allocations: 113.2 MB / 0.8954 GB, free: 2.559 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.04629/0.8335, allocations: 24.01 MB / 0.9188 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00765/0.8412, allocations: 120.6 kB / 0.9189 GB, free: 15.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005201/0.8465, allocations: 1.268 MB / 0.9202 GB, free: 14.17 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.01407/0.8606, allocations: 3.66 MB / 0.9237 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01054/0.8712, allocations: 3.068 MB / 0.9267 GB, free: 8.973 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01379/0.885, allocations: 7.122 MB / 0.9337 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005499/0.8905, allocations: 2.554 MB / 0.9362 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008441/0.899, allocations: 2.785 MB / 0.9389 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005206/0.9043, allocations: 2.104 MB / 0.941 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001912/0.9062, allocations: 252 kB / 0.9412 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009049/0.9153, allocations: 1.638 MB / 0.9428 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.00198/0.9173, allocations: 0.6812 MB / 0.9435 GB, free: 7.863 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00423/0.9216, allocations: 1.493 MB / 0.9449 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01041/0.932, allocations: 4.342 MB / 0.9492 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.9321, allocations: 0 / 0.9492 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.605e-06/0.9321, allocations: 0 / 0.9492 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001985/0.9323, allocations: 0 / 0.9492 GB, free: 2.008 MB / 0.7325 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.01092/0.9432, allocations: 3.182 MB / 0.9523 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.9433, allocations: 8.031 kB / 0.9523 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00161/0.9449, allocations: 320.3 kB / 0.9526 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00488/0.9498, allocations: 2.166 MB / 0.9547 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.95, allocations: 123 kB / 0.9548 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002648/0.9502, allocations: 164 kB / 0.955 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003007/0.9533, allocations: 1.604 MB / 0.9565 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.9533, allocations: 7.938 kB / 0.9565 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.9535, allocations: 71.91 kB / 0.9566 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.614e-05/0.9535, allocations: 51.98 kB / 0.9567 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.9556, allocations: 1.143 MB / 0.9578 GB, free: 8.973 MB / 0.7481 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.01227/0.9679, allocations: 7.883 MB / 0.9655 GB, free: 0.5781 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009267/0.9689, allocations: 486.6 kB / 0.9659 GB, free: 100 kB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006071/0.9695, allocations: 319 kB / 0.9662 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007905/0.9703, allocations: 0.7523 MB / 0.967 GB, free: 14.87 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.9704, allocations: 47.06 kB / 0.967 GB, free: 14.81 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=60): time 4.137e-06/0.9704, allocations: 0 / 0.967 GB, free: 14.81 MB / 0.7637 GB Notification: Performance of matching and sorting (n=60): time 0.003531/0.9739, allocations: 0.9842 MB / 0.968 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.974, allocations: 59.97 kB / 0.968 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003725/0.9777, allocations: 2.277 MB / 0.9703 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002461/0.978, allocations: 49.7 kB / 0.9703 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.9791, allocations: 1.145 MB / 0.9714 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.9793, allocations: 220.9 kB / 0.9716 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003741/0.9797, allocations: 250.7 kB / 0.9719 GB, free: 9.773 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.9799, allocations: 353.9 kB / 0.9722 GB, free: 9.422 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006912/0.9806, allocations: 365.8 kB / 0.9726 GB, free: 9.062 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.9816, allocations: 0.7424 MB / 0.9733 GB, free: 8.164 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.9831, allocations: 0.9824 MB / 0.9743 GB, free: 7.07 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.9831, allocations: 3.938 kB / 0.9743 GB, free: 7.066 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00285/0.986, allocations: 1.295 MB / 0.9755 GB, free: 5.762 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.986, allocations: 8 kB / 0.9755 GB, free: 5.754 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.986, allocations: 8 kB / 0.9755 GB, free: 5.746 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.616e-05/0.9861, allocations: 16 kB / 0.9756 GB, free: 5.73 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009755/0.9871, allocations: 247.6 kB / 0.9758 GB, free: 5.488 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.732e-05/0.9871, allocations: 22.27 kB / 0.9758 GB, free: 5.469 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/0.9892, allocations: 174.7 kB / 0.976 GB, free: 5.297 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.9894, allocations: 51.98 kB / 0.976 GB, free: 5.246 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001688/0.991, allocations: 0.7563 MB / 0.9768 GB, free: 4.484 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009901/0.992, allocations: 0.7349 MB / 0.9775 GB, free: 3.586 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001382/0.9934, allocations: 0.9483 MB / 0.9784 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.92e-06/0.9935, allocations: 7.938 kB / 0.9784 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002625/0.9961, allocations: 1.262 MB / 0.9797 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.9961, allocations: 8 kB / 0.9797 GB, free: 1.234 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.9961, allocations: 8 kB / 0.9797 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.9962, allocations: 12 kB / 0.9797 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009304/0.9971, allocations: 253.3 kB / 0.9799 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.69e-05/0.9972, allocations: 23.98 kB / 0.9799 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.9992, allocations: 123.2 kB / 0.9801 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/0.9993, allocations: 55.97 kB / 0.9801 GB, free: 0.7695 MB / 0.7637 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.0004041/0.9997, allocations: 251.8 kB / 0.9804 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005271/1, allocations: 233.1 kB / 0.9806 GB, free: 292 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/1.002, allocations: 0.8749 MB / 0.9814 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001001/1.003, allocations: 0.6891 MB / 0.9821 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/1.003, allocations: 3.562 kB / 0.9821 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009966/1.004, allocations: 410 kB / 0.9825 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/1.005, allocations: 12 kB / 0.9825 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009379/1.006, allocations: 43.88 kB / 0.9826 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/1.006, allocations: 40.45 kB / 0.9826 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001457/1.007, allocations: 0.7798 MB / 0.9834 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002028/1.009, allocations: 1.391 MB / 0.9847 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004992/1.01, allocations: 308.4 kB / 0.985 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.002442/1.012, allocations: 1.533 MB / 0.9865 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of Backend: time 6.01e-07/1.012, allocations: 0 / 0.9865 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.006574/1.019, allocations: 1.984 MB / 0.9884 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of SimCode: time 0.01162/1.03, allocations: 5.154 MB / 0.9935 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of Templates: time 0.08606/1.116, allocations: 48.69 MB / 1.041 GB, free: 3.18 MB / 0.8262 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)