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.001232/0.001232, allocations: 105.4 kB / 16.4 MB, free: 6.395 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.001223/0.001223, allocations: 192 kB / 17.34 MB, free: 5.691 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.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 288.1 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 1.007/1.007, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 95.84 kB / 0.6821 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5214/0.5242, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.141/0.6652, allocations: 112.8 MB / 0.8772 GB, free: 2.695 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03496/0.7001, allocations: 20.27 MB / 0.897 GB, free: 14.39 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004624/0.7048, allocations: 107.4 kB / 0.8971 GB, free: 14.28 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004502/0.7093, allocations: 1.324 MB / 0.8984 GB, free: 12.95 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.7205, allocations: 3.873 MB / 0.9022 GB, free: 9.062 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.008281/0.7288, allocations: 3.13 MB / 0.9053 GB, free: 5.969 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01122/0.74, allocations: 7.206 MB / 0.9123 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00387/0.7439, allocations: 2.107 MB / 0.9144 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007433/0.7513, allocations: 2.882 MB / 0.9172 GB, free: 9.684 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004572/0.7559, allocations: 2.131 MB / 0.9193 GB, free: 7.543 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.7569, allocations: 252 kB / 0.9195 GB, free: 7.297 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004735/0.7616, allocations: 1.654 MB / 0.9211 GB, free: 5.641 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.7627, allocations: 0.7197 MB / 0.9218 GB, free: 4.918 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002949/0.7656, allocations: 1.508 MB / 0.9233 GB, free: 3.402 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.008769/0.7744, allocations: 4.423 MB / 0.9276 GB, free: 14.97 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.7744, allocations: 0 / 0.9276 GB, free: 14.97 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.314e-06/0.7744, allocations: 0 / 0.9276 GB, free: 14.97 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001293/0.7746, allocations: 0 / 0.9276 GB, free: 14.97 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.006788/0.7813, allocations: 3.332 MB / 0.9309 GB, free: 11.57 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.7814, allocations: 8.031 kB / 0.9309 GB, free: 11.56 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008644/0.7822, allocations: 346.3 kB / 0.9312 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00433/0.7866, allocations: 2.226 MB / 0.9334 GB, free: 8.922 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.7867, allocations: 123 kB / 0.9335 GB, free: 8.801 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002588/0.7869, allocations: 168 kB / 0.9337 GB, free: 8.637 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002949/0.7899, allocations: 1.616 MB / 0.9352 GB, free: 6.957 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.446e-05/0.7899, allocations: 4 kB / 0.9352 GB, free: 6.953 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.7901, allocations: 60 kB / 0.9353 GB, free: 6.895 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.328e-05/0.7901, allocations: 47.94 kB / 0.9353 GB, free: 6.848 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.7923, allocations: 1.147 MB / 0.9365 GB, free: 5.695 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.01329/0.8056, allocations: 7.938 MB / 0.9442 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009167/0.8066, allocations: 447 kB / 0.9446 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006069/0.8072, allocations: 295 kB / 0.9449 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007926/0.808, allocations: 0.7563 MB / 0.9457 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.808, allocations: 51.05 kB / 0.9457 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 2.184e-06/0.808, allocations: 0 / 0.9457 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002321/0.8103, allocations: 0.9934 MB / 0.9467 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.8104, allocations: 55.97 kB / 0.9467 GB, free: 10.46 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003647/0.814, allocations: 2.339 MB / 0.949 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.8142, allocations: 49.7 kB / 0.9491 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.8154, allocations: 1.175 MB / 0.9502 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002726/0.8157, allocations: 226 kB / 0.9504 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004066/0.8161, allocations: 258.7 kB / 0.9507 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0002487/0.8163, allocations: 349.9 kB / 0.951 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000785/0.8171, allocations: 357.9 kB / 0.9513 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.8182, allocations: 0.7502 MB / 0.9521 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.8199, allocations: 0.9746 MB / 0.953 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.8199, allocations: 8 kB / 0.953 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002711/0.8226, allocations: 1.304 MB / 0.9543 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.8226, allocations: 8 kB / 0.9543 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.8226, allocations: 8 kB / 0.9543 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.8227, allocations: 16.72 kB / 0.9543 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.8237, allocations: 251.6 kB / 0.9546 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/0.8237, allocations: 19.92 kB / 0.9546 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.8254, allocations: 170.8 kB / 0.9548 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.23e-05/0.8255, allocations: 51.98 kB / 0.9548 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001476/0.827, allocations: 0.7626 MB / 0.9556 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001118/0.8281, allocations: 0.7387 MB / 0.9563 GB, free: 208 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.36/1.188, allocations: 0.9494 MB / 0.9572 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.114e-05/1.188, allocations: 2.188 kB / 0.9572 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003103/1.191, allocations: 1.274 MB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/1.191, allocations: 11.19 kB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/1.191, allocations: 8.5 kB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/1.191, allocations: 14.59 kB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/1.192, allocations: 250.7 kB / 0.9587 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-05/1.192, allocations: 19.89 kB / 0.9587 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/1.194, allocations: 124.7 kB / 0.9589 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.345e-05/1.194, allocations: 50.12 kB / 0.9589 GB, free: 180.4 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.0002901/1.195, allocations: 249.8 kB / 0.9591 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004447/1.195, allocations: 247.2 kB / 0.9594 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001734/1.197, allocations: 0.8903 MB / 0.9603 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/1.197, allocations: 7.688 kB / 0.9603 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.197, allocations: 3.75 kB / 0.9603 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009701/1.198, allocations: 0.6816 MB / 0.9609 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003945/1.202, allocations: 2.586 MB / 0.9635 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.202, allocations: 1.375 kB / 0.9635 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005487/1.202, allocations: 125.8 kB / 0.9636 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.896e-06/1.202, allocations: 8.766 kB / 0.9636 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-05/1.202, allocations: 17.5 kB / 0.9636 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/1.202, allocations: 10.62 kB / 0.9636 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.202, allocations: 1.375 kB / 0.9636 GB, free: 178.4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/1.204, allocations: 1.319 MB / 0.9649 GB, free: 177.7 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007955/1.205, allocations: 432.2 kB / 0.9653 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/1.205, allocations: 12.12 kB / 0.9653 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009999/1.206, allocations: 55.17 kB / 0.9654 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/1.206, allocations: 43.8 kB / 0.9654 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.498e-05/1.207, allocations: 32.8 kB / 0.9655 GB, free: 177.4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002156/1.209, allocations: 1.572 MB / 0.967 GB, free: 176.8 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7e-08/1.209, allocations: 0 / 0.967 GB, free: 176.8 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002506/1.211, allocations: 1.118 MB / 0.9681 GB, free: 176.7 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.001982/1.213, allocations: 0.7477 MB / 0.9688 GB, free: 176.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002252/1.215, allocations: 1.285 MB / 0.9701 GB, free: 176.1 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.215, allocations: 0 / 0.9701 GB, free: 176.1 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000473/1.216, allocations: 305.1 kB / 0.9704 GB, free: 176 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005738/1.222, allocations: 1.393 MB / 0.9717 GB, free: 175.7 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005354/1.227, allocations: 3.742 MB / 0.9754 GB, free: 173.8 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008819/1.228, allocations: 1.593 MB / 0.9769 GB, free: 172.9 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002/1.23, allocations: 0.4931 MB / 0.9774 GB, free: 172.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/1.23, allocations: 182.8 kB / 0.9776 GB, free: 172.4 MB / 0.7169 GB Notification: Performance of SimCode: time 1.172e-06/1.23, allocations: 0 / 0.9776 GB, free: 172.4 MB / 0.7169 GB Notification: Performance of Templates: time 0.05976/1.29, allocations: 45.03 MB / 1.022 GB, free: 128.2 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)